Make WordPress Core


Ignore:
Timestamp:
07/12/2017 10:05:54 PM (8 years ago)
Author:
DrewAPicture
Message:

Docs: Default for the orderby argument in wp_list_categories() is actually 'name', not 'ID'.

Props uicestone.
See #41017.

File:
1 edited

Legend:

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

    r40903 r41033  
    472472 *     @type string       $order                 Which direction to order categories. Accepts 'ASC' or 'DESC'.
    473473 *                                               Default 'ASC'.
    474  *     @type string       $orderby               The column to use for ordering categories. Default 'ID'.
     474 *     @type string       $orderby               The column to use for ordering categories. Default 'name'.
    475475 *     @type string       $separator             Separator between links. Default '<br />'.
    476476 *     @type bool|int     $show_count            Whether to show how many posts are in the category. Default 0.
Note: See TracChangeset for help on using the changeset viewer.