From 994ef530d100f5e1ff749682d3026531f869cbcc Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Wed, 12 Jul 2017 22:05:54 +0000 Subject: [PATCH] Docs: Default for the `orderby` argument in `wp_list_categories()` is actually 'name', not 'ID'. Props uicestone. See #41017. git-svn-id: https://develop.svn.wordpress.org/trunk@41033 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/category-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/category-template.php b/src/wp-includes/category-template.php index a9679f529f..5a36067533 100644 --- a/src/wp-includes/category-template.php +++ b/src/wp-includes/category-template.php @@ -471,7 +471,7 @@ function wp_dropdown_categories( $args = '' ) { * See get_terms(). Default true. * @type string $order Which direction to order categories. Accepts 'ASC' or 'DESC'. * Default 'ASC'. - * @type string $orderby The column to use for ordering categories. Default 'ID'. + * @type string $orderby The column to use for ordering categories. Default 'name'. * @type string $separator Separator between links. Default '
'. * @type bool|int $show_count Whether to show how many posts are in the category. Default 0. * @type string $show_option_all Text to display for showing all categories. Default empty string.