Taxonomy: Restore documentation for the `taxonomy` parameter of `wp_list_categories()`.
The parameter's default value is different from the one in `WP_Term_Query::__construct()`, and should be documented accordingly. This also clarifies that the `taxonomy` parameter of `wp_list_categories()` only accepts a string, not an array. Follow-up to [40903], [41767], [45894], [45895]. Props grapplerulrich, mukesh27, TimothyBlynJacobs, SergeyBiryukov. Fixes #51378. See #47896. Built from https://develop.svn.wordpress.org/trunk@49060 git-svn-id: http://core.svn.wordpress.org/trunk@48822 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5c3a734df0
commit
d36da091c4
|
@ -512,6 +512,7 @@ function wp_dropdown_categories( $args = '' ) {
|
|||
* @type string $style The style used to display the categories list. If 'list', categories
|
||||
* will be output as an unordered list. If left empty or another value,
|
||||
* categories will be output separated by `<br>` tags. Default 'list'.
|
||||
* @type string $taxonomy Name of the taxonomy to retrieve. Default 'category'.
|
||||
* @type string $title_li Text to use for the list title `<li>` element. Pass an empty string
|
||||
* to disable. Default 'Categories'.
|
||||
* @type bool|int $use_desc_for_title Whether to use the category description as the title attribute.
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.6-alpha-49059';
|
||||
$wp_version = '5.6-alpha-49060';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue