Make WordPress Core

Changeset 49060


Ignore:
Timestamp:
09/27/2020 08:17:25 AM (4 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/category-template.php

    r49059 r49060  
    513513 *                                               will be output as an unordered list. If left empty or another value,
    514514 *                                               categories will be output separated by `<br>` tags. Default 'list'.
     515 *     @type string       $taxonomy              Name of the taxonomy to retrieve. Default 'category'.
    515516 *     @type string       $title_li              Text to use for the list title `<li>` element. Pass an empty string
    516517 *                                               to disable. Default 'Categories'.
Note: See TracChangeset for help on using the changeset viewer.