WordPress.org

Make WordPress Core

Changeset 41767


Ignore:
Timestamp:
10/05/2017 01:56:48 AM (9 months ago)
Author:
SergeyBiryukov
Message:

Taxonomy: After [40903], restore documentation for wp_dropdown_categories() arguments that are different from the defaults in WP_Term_Query::__construct().

Fixes #41058.

File:
1 edited

Legend:

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

    r41221 r41767  
    282282 *     @type string       $show_option_none  Text to display for showing no categories. Default empty.
    283283 *     @type string       $option_none_value Value to use when no category is selected. Default empty.
     284 *     @type string       $orderby           Which column to use for ordering categories. See get_terms() for a list
     285 *                                           of accepted values. Default 'id' (term_id).
    284286 *     @type bool         $pad_counts        See get_terms() for an argument description. Default false.
    285287 *     @type bool|int     $show_count        Whether to include post counts. Accepts 0, 1, or their bool equivalents.
     
    287289 *     @type bool|int     $echo              Whether to echo or return the generated markup. Accepts 0, 1, or their
    288290 *                                           bool equivalents. Default 1.
     291 *     @type bool|int     $hierarchical      Whether to traverse the taxonomy hierarchy. Accepts 0, 1, or their bool
     292 *                                           equivalents. Default 0.
    289293 *     @type int          $depth             Maximum depth. Default 0.
    290294 *     @type int          $tab_index         Tab index for the select element. Default 0 (no tabindex).
     
    298302 *                                           'slug', 'term_group', 'term_taxonomy_id', 'taxonomy', 'description',
    299303 *                                           'parent', 'count'. Default 'term_id'.
     304 *     @type string|array $taxonomy          Name of the category or categories to retrieve. Default 'category'.
    300305 *     @type bool         $hide_if_empty     True to skip generating markup if no categories are found.
    301306 *                                           Default false (create select element even if no categories are found).
Note: See TracChangeset for help on using the changeset viewer.