From 962900ab2ef925aca4e2d3c5f3e574a975f009f0 Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 18 Apr 2008 01:53:14 +0000 Subject: [PATCH] We don't need get_categories() to do a hierarchical sort anymore. The walker takes care of it. For 2.5 git-svn-id: http://svn.automattic.com/wordpress/branches/2.5@7733 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/category-template.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wp-includes/category-template.php b/wp-includes/category-template.php index ba24302074..b0ab6511b8 100644 --- a/wp-includes/category-template.php +++ b/wp-includes/category-template.php @@ -232,7 +232,9 @@ function wp_dropdown_categories($args = '') { if ( (int) $tab_index > 0 ) $tab_index_attribute = " tabindex=\"$tab_index\""; + $r['hierarchical'] = 0; $categories = get_categories($r); + $r['hierarchical'] = $hierarchical; $output = ''; if ( ! empty($categories) ) { @@ -289,7 +291,9 @@ function wp_list_categories($args = '') { extract( $r ); + $r['hierarchical'] = 0; $categories = get_categories($r); + $r['hierarchical'] = $hierarchical; $output = ''; if ( $title_li && 'list' == $style )