wp_list_cats doesn't hide category with only a future post
|Reported by:||murky||Owned by:||anonymous|
I have a futurepost in the category 'rugby' - it is the only post in this category.
There is no published post already posted in that category with a date before now.
wp_list_cats shows a link to the 'rugby' category, despite no posts being available. This makes for a broken link.
Here is the relevant code:
$query='sort_column=name&hide_empty=true&child_of=' . $cat;