From 8357bb923cf59423033f1cc4d73c4c212ce7929e Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 27 Sep 2020 08:17:25 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@49060 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/category-template.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wp-includes/category-template.php b/src/wp-includes/category-template.php index f200eb9448..c4740f4fbd 100644 --- a/src/wp-includes/category-template.php +++ b/src/wp-includes/category-template.php @@ -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 `
` 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 `
  • ` 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.