[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:38:32 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:
---------------------------------------------+-----------------------------
Changes (by mdawaffe):
* keywords: wp_list_categories => wp_list_categories dev-feedback
Comment:
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()}}}.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14344#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list