Skip to content

Commit

Permalink
Reverting [7733]. Breaks listing of categories with posts that have p…
Browse files Browse the repository at this point in the history
…arents with no posts.

git-svn-id: http://svn.automattic.com/wordpress/branches/2.5@7793 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
ryan committed Apr 23, 2008
1 parent d391388 commit 7b31ea2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions wp-includes/category-template.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) ) {
Expand Down Expand Up @@ -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 )
Expand Down

0 comments on commit 7b31ea2

Please sign in to comment.