Reverting [7729]. Breaks listing of categories with posts that have parents with no posts.

git-svn-id: https://develop.svn.wordpress.org/trunk@7792 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-04-23 22:00:31 +00:00
parent 563f49278e
commit f1d4f49057
1 changed files with 0 additions and 4 deletions

View File

@ -232,9 +232,7 @@ 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) ) {
@ -291,9 +289,7 @@ 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 )