Fix hide_empty for list_cats()

git-svn-id: https://develop.svn.wordpress.org/trunk@795 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dougal Campbell 2004-01-26 01:59:09 +00:00
parent d4e08b7086
commit e980dee752

View File

@ -1543,6 +1543,7 @@ function list_cats($optionall = 1, $all = 'All', $sort_column = 'ID', $sort_orde
if (intval($optiondates) == 1) {
$link .= ' '.$category->lastday.'/'.$category->lastmonth;
}
if (!$hide_empty || $category_posts[$category->cat_ID]) {
if ($list) {
echo "\t<li>$link</li>\n";
} else {
@ -1550,6 +1551,7 @@ function list_cats($optionall = 1, $all = 'All', $sort_column = 'ID', $sort_orde
}
}
}
}
/***** // Category tags *****/