[wp-trac] [WordPress Trac] #3015: wp_list_cats doesn't hide category with only a future post

WordPress Trac wp-trac at lists.automattic.com
Wed Aug 9 14:15:58 GMT 2006


#3015: wp_list_cats doesn't hide category with only a future post
----------------------------+-----------------------------------------------
 Reporter:  murky           |       Owner:  anonymous
     Type:  defect          |      Status:  new      
 Priority:  normal          |   Milestone:           
Component:  Administration  |     Version:           
 Severity:  normal          |    Keywords:           
----------------------------+-----------------------------------------------
 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.

 On
 http://www.murky.org/blg/category/sport/

 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:

 {{{   <?php
     $query='sort_column=name&hide_empty=true&child_of=' . $cat;
     wp_list_cats($query);

     ?>}}}

-- 
Ticket URL: <http://trac.wordpress.org/ticket/3015>
WordPress Trac <http://wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list