Make WordPress Core

Ticket #36693: 36693-2.diff

File 36693-2.diff, 6.4 KB (added by birgire, 9 years ago)

Fixed the extra indentation that came with my previous patch in the $hierarchical line.

  • src/wp-includes/category-template.php

     
    486486 * @param string|array $args {
    487487 *     Array of optional arguments.
    488488 *
    489  *     @type string       $show_option_all       Text to display for showing all categories. Default empty string.
    490  *     @type string       $show_option_none      Text to display for the 'no categories' option.
    491  *                                               Default 'No categories'.
    492  *     @type string       $orderby               The column to use for ordering categories. Default 'ID'.
    493  *     @type string       $order                 Which direction to order categories. Accepts 'ASC' or 'DESC'.
    494  *                                               Default 'ASC'.
    495  *     @type bool|int     $show_count            Whether to show how many posts are in the category. Default 0.
    496  *     @type bool|int     $hide_empty            Whether to hide categories that don't have any posts attached to them.
    497  *                                               Default 1.
    498  *     @type bool|int     $use_desc_for_title    Whether to use the category description as the title attribute.
    499  *                                               Default 1.
    500  *     @type string       $feed                  Text to use for the feed link. Default 'Feed for all posts filed
    501  *                                               under [cat name]'.
    502  *     @type string       $feed_type             Feed type. Used to build feed link. See {@link get_term_feed_link()}.
    503  *                                               Default empty string (default feed).
    504  *     @type string       $feed_image            URL of an image to use for the feed link. Default empty string.
    505489 *     @type int          $child_of              Term ID to retrieve child terms of. See {@link get_terms()}. Default 0.
     490 *     @type int|array    $current_category      ID of category, or array of IDs of categories, that should get the
     491 *                                               'current-cat' class. Default 0.
     492 *     @type int          $depth                 Category depth. Used for tab indentation. Default 0.
     493 *     @type bool|int     $echo                  True to echo markup, false to return it. Default 1.
    506494 *     @type array|string $exclude               Array or comma/space-separated string of term IDs to exclude.
    507495 *                                               If `$hierarchical` is true, descendants of `$exclude` terms will also
    508496 *                                               be excluded; see `$exclude_tree`. See {@link get_terms()}.
    509497 *                                               Default empty string.
    510498 *     @type array|string $exclude_tree          Array or comma/space-separated string of term IDs to exclude, along
    511499 *                                               with their descendants. See {@link get_terms()}. Default empty string.
    512  *     @type bool|int     $echo                  True to echo markup, false to return it. Default 1.
    513  *     @type int|array    $current_category      ID of category, or array of IDs of categories, that should get the
    514  *                                               'current-cat' class. Default 0.
     500 *     @type string       $feed                  Text to use for the feed link. Default 'Feed for all posts filed
     501 *                                               under [cat name]'.
     502 *     @type string       $feed_image            URL of an image to use for the feed link. Default empty string.
     503 *     @type string       $feed_type             Feed type. Used to build feed link. See {@link get_term_feed_link()}.
     504 *                                               Default empty string (default feed).
     505 *     @type bool|int     $hide_empty            Whether to hide categories that don't have any posts attached to them.
     506 *                                               Default 1.
     507 *     @type bool         $hide_title_if_empty   Whether to hide the `$title_li` element if there are no terms in
     508 *                                               the list. Default false (title will always be shown).
    515509 *     @type bool         $hierarchical          Whether to include terms that have non-empty descendants.
    516510 *                                               See {@link get_terms()}. Default true.
     511 *     @type string       $order                 Which direction to order categories. Accepts 'ASC' or 'DESC'.
     512 *                                               Default 'ASC'.
     513 *     @type string       $orderby               The column to use for ordering categories. Default 'ID'.
     514 *     @type string       $separator             Separator between links. Default '<br />'.
     515 *     @type bool|int     $show_count            Whether to show how many posts are in the category. Default 0.
     516 *     @type string       $show_option_all       Text to display for showing all categories. Default empty string.
     517 *     @type string       $show_option_none      Text to display for the 'no categories' option.
     518 *                                               Default 'No categories'.
     519 *     @type string       $style                 Style to display the categories list in. A value of 'list' displays the
     520 *                                               categories as unordered list items while 'none' separates them by <br> tags. 
     521 *                                               Default 'list'.
     522 *     @type string       $taxonomy              Taxonomy name. Default 'category'.
    517523 *     @type string       $title_li              Text to use for the list title `<li>` element. Pass an empty string
    518524 *                                               to disable. Default 'Categories'.
    519  *     @type bool         $hide_title_if_empty   Whether to hide the `$title_li` element if there are no terms in
    520  *                                               the list. Default false (title will always be shown).
    521  *     @type int          $depth                 Category depth. Used for tab indentation. Default 0.
    522  *     @type string       $taxonomy              Taxonomy name. Default 'category'.
    523  *     @type string       $separator             Separator between links. Default '<br />'.
     525 *     @type bool|int     $use_desc_for_title    Whether to use the category description as the title attribute.
     526 *                                               Default 1.
    524527 * }
    525528 * @return false|string HTML content only if 'echo' argument is 0.
    526529 */