Fix hide_empty for list_cats()
git-svn-id: http://svn.automattic.com/wordpress/trunk@795 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5af414bdec
commit
07731fae29
|
@ -1543,12 +1543,14 @@ 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 {
|
||||
echo "\t$link<br />\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/***** // Category tags *****/
|
||||
|
|
Loading…
Reference in New Issue