[wp-trac] [WordPress Trac] #14344: wp_dropdown_categories, show_count=1 counts unpublished posts as well

WordPress Trac wp-trac at lists.automattic.com
Sun Jan 16 01:43:12 UTC 2011


#14344: wp_dropdown_categories, show_count=1 counts unpublished posts as well
---------------------------------------------+-----------------------------
 Reporter:  1manfactory                      |       Owner:
     Type:  defect (bug)                     |      Status:  new
 Priority:  normal                           |   Milestone:  Awaiting
Component:  General                          |  Review
 Severity:  minor                            |     Version:  3.1
 Keywords:  wp_list_categories dev-feedback  |  Resolution:
---------------------------------------------+-----------------------------

Comment (by mdawaffe):

 Replying to [comment:5 mdawaffe]:
 > The count column is COUNTed from the term_relationships table, which
 doesn't know about the statuses of its object_ids.
 >
 > Fixing would involve filtering the query in
 {{{wp_update_term_count_now()}}}.

 Um... I think I'm lying.  I thought I could reproduce, but can't now.
 Looking more.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/14344#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list