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:
parent
d4e08b7086
commit
e980dee752
@ -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 *****/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user