[wp-trac] [WordPress Trac] #17074: wp_list_categories hide_empty do not work when items in trash

WordPress Trac wp-trac at lists.automattic.com
Thu Apr 7 08:37:56 UTC 2011


#17074: wp_list_categories hide_empty do not work when items in trash
--------------------------+-----------------------------
 Reporter:  thomask       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Taxonomy      |    Version:  3.1
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 wp_list_categories hide_empty function show terms with the items in trash
 only (and probably also in draft state and other non visible modes), the
 same with show_count, which show numbers also for not accesible articles.

 The same bug will be probably in other similar functions, e.g
 wp_dropdown_categories as it is probably because of checking the new post
 3.0 possibilities of post_status in the function which increases
 term_taxonomy count field (my blind guess) - i just cannot find where the
 bug sits

 P.S.: IMO we should also switch the naming to wp_list_terms
 wp_dropdown_terms ... and create wp_list_categories... as child functions

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


More information about the wp-trac mailing list