[wp-trac] [WordPress Trac] #13670: Taxonomies for custom Post_Types do not recieve pad_counts treatment
WordPress Trac
wp-trac at lists.automattic.com
Tue Jun 1 10:14:33 UTC 2010
#13670: Taxonomies for custom Post_Types do not recieve pad_counts treatment
--------------------------+-------------------------------------------------
Reporter: dd32 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.0
Component: Taxonomy | Version: 3.0
Severity: normal | Keywords: needs-patch
--------------------------+-------------------------------------------------
as reported by reko in #wordpress-dev, Taxonomy pad_counts do not apply to
custom taxonomies, attached to custom post types.
Right now, the [http://core.trac.wordpress.org/browser/trunk/wp-
includes/taxonomy.php#L2396 SQL limits] pad_counts to published posts.
For comparison, The {{{_update_post_term_count()}}} function (which
updates categories and tags counts) limits to
[http://core.trac.wordpress.org/browser/trunk/wp-
includes/taxonomy.php#L2446 published post_type objects in that taxonomy].
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13670>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list