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
1 changed files with 6 additions and 4 deletions

View File

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