[wp-trac] [WordPress Trac] #14344: wp_dropdown_categories, show_count=1 counts unpublished posts as well
WordPress Trac
wp-trac at lists.automattic.com
Tue Nov 2 01:44:42 UTC 2010
#14344: wp_dropdown_categories, show_count=1 counts unpublished posts as well
--------------------------+-------------------------------------------------
Reporter: 1manfactory | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.0
Severity: minor | Keywords:
--------------------------+-------------------------------------------------
Changes (by dcowgill):
* cc: dcowgill@… (added)
Comment:
Yeah, I'm having the same issue with wp_list_categories(). It appears to
be missing something like:
$where .= " AND post_status = 'publish'";
I believed it needs to be added in the 'get_terms' function but don't know
how to fix it exactly.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14344#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list