Make WordPress Core

Ticket #47896: 47896.3.diff

File 47896.3.diff, 3.3 KB (added by boonebgorges, 5 years ago)
  • src/wp-includes/category-template.php

    diff --git src/wp-includes/category-template.php src/wp-includes/category-template.php
    index 438bbe9966..2e44fd7143 100644
    function wp_dropdown_categories( $args = '' ) { 
    468468 *              optionally accept an array of values.
    469469 *
    470470 * @param string|array $args {
    471  *     Array of optional arguments.
     471 *     Array of optional arguments. See get_categories(), get_terms(), and WP_Tax_Query::construct()
     472 *     for full lists of arguments that can be passed in `$args`.
    472473 *
    473  *     @type int          $child_of              Term ID to retrieve child terms of. See get_terms(). Default 0.
    474474 *     @type int|array    $current_category      ID of category, or array of IDs of categories, that should get the
    475475 *                                               'current-cat' class. Default 0.
    476476 *     @type int          $depth                 Category depth. Used for tab indentation. Default 0.
    function wp_dropdown_categories( $args = '' ) { 
    486486 *     @type string       $feed_image            URL of an image to use for the feed link. Default empty string.
    487487 *     @type string       $feed_type             Feed type. Used to build feed link. See get_term_feed_link().
    488488 *                                               Default empty string (default feed).
    489  *     @type bool|int     $hide_empty            Whether to hide categories that don't have any posts attached to them.
    490  *                                               Default 1.
    491489 *     @type bool         $hide_title_if_empty   Whether to hide the `$title_li` element if there are no terms in
    492490 *                                               the list. Default false (title will always be shown).
    493  *     @type bool         $hierarchical          Whether to include terms that have non-empty descendants.
    494  *                                               See get_terms(). Default true.
    495  *     @type string       $order                 Which direction to order categories. Accepts 'ASC' or 'DESC'.
    496  *                                               Default 'ASC'.
    497  *     @type string       $orderby               The column to use for ordering categories. Default 'name'.
    498491 *     @type string       $separator             Separator between links. Default '<br />'.
    499492 *     @type bool|int     $show_count            Whether to show how many posts are in the category. Default 0.
    500493 *     @type string       $show_option_all       Text to display for showing all categories. Default empty string.
    function wp_dropdown_categories( $args = '' ) { 
    503496 *     @type string       $style                 The style used to display the categories list. If 'list', categories
    504497 *                                               will be output as an unordered list. If left empty or another value,
    505498 *                                               categories will be output separated by `<br>` tags. Default 'list'.
    506  *     @type string       $taxonomy              Taxonomy name. Default 'category'.
    507499 *     @type string       $title_li              Text to use for the list title `<li>` element. Pass an empty string
    508500 *                                               to disable. Default 'Categories'.
    509501 *     @type bool|int     $use_desc_for_title    Whether to use the category description as the title attribute.