mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 12:58:25 +01:00
Reverting [7733]. Breaks listing of categories with posts that have parents with no posts.
git-svn-id: https://develop.svn.wordpress.org/branches/2.5@7793 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
73f8062193
commit
af8e40fae2
@ -232,9 +232,7 @@ 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) ) {
|
||||
@ -291,9 +289,7 @@ function wp_list_categories($args = '') {
|
||||
|
||||
extract( $r );
|
||||
|
||||
$r['hierarchical'] = 0;
|
||||
$categories = get_categories($r);
|
||||
$r['hierarchical'] = $hierarchical;
|
||||
|
||||
$output = '';
|
||||
if ( $title_li && 'list' == $style )
|
||||
|
Loading…
x
Reference in New Issue
Block a user