[wp-trac] [WordPress Trac] #18072: Custom post type count for custom taxonomy incorrect because it includes revisions

WordPress Trac wp-trac at lists.automattic.com
Mon Jul 11 17:59:15 UTC 2011


#18072: Custom post type count for custom taxonomy incorrect because it includes
revisions
-----------------------------+-----------------------------
 Reporter:  danielbachhuber  |      Owner:
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Taxonomy         |    Version:
 Severity:  normal           |   Keywords:
-----------------------------+-----------------------------
 In the column that shows the number of posts of a given custom post type
 associated with a given custom taxonomy term, the count includes post
 revisions. This is erroneous and different than the behavior WordPress
 exhibits for standard taxonomies with standard posts.

 Instead, WordPress should count all posts of a given custom post type
 minus the number of revisions for each post (e.g. each post should only be
 counted once)

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


More information about the wp-trac mailing list