We don't need get_categories() to do a hierarchical sort anymore. The walker takes care of it.
git-svn-id: https://develop.svn.wordpress.org/trunk@7729 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f0c73873c4
commit
1a62535f32
|
@ -232,7 +232,9 @@ function wp_dropdown_categories($args = '') {
|
||||||
if ( (int) $tab_index > 0 )
|
if ( (int) $tab_index > 0 )
|
||||||
$tab_index_attribute = " tabindex=\"$tab_index\"";
|
$tab_index_attribute = " tabindex=\"$tab_index\"";
|
||||||
|
|
||||||
|
$r['hierarchical'] = 0;
|
||||||
$categories = get_categories($r);
|
$categories = get_categories($r);
|
||||||
|
$r['hierarchical'] = $hierarchical;
|
||||||
|
|
||||||
$output = '';
|
$output = '';
|
||||||
if ( ! empty($categories) ) {
|
if ( ! empty($categories) ) {
|
||||||
|
@ -289,7 +291,9 @@ function wp_list_categories($args = '') {
|
||||||
|
|
||||||
extract( $r );
|
extract( $r );
|
||||||
|
|
||||||
|
$r['hierarchical'] = 0;
|
||||||
$categories = get_categories($r);
|
$categories = get_categories($r);
|
||||||
|
$r['hierarchical'] = $hierarchical;
|
||||||
|
|
||||||
$output = '';
|
$output = '';
|
||||||
if ( $title_li && 'list' == $style )
|
if ( $title_li && 'list' == $style )
|
||||||
|
|
Loading…
Reference in New Issue