[wp-trac] [WordPress Trac] #14084: Custom taxonomy count includes draft & trashed posts

WordPress Trac wp-trac at lists.automattic.com
Fri Jan 7 00:07:21 UTC 2011


#14084: Custom taxonomy count includes draft & trashed posts
--------------------------+-----------------------------
 Reporter:  lumpysimon    |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  Taxonomy      |     Version:  3.0
 Severity:  normal        |  Resolution:
 Keywords:  dev-feedback  |
--------------------------+-----------------------------

Old description:

> I have registered a custom post type and an associated non-hierarchical
> custom taxonomy.
>
> The tag count, both on edit-tags.php?taxonomy=my_tag&post_type=my_post
> and when using wp_tag_cloud, includes draft & trashed posts in the count.
>
> The count should only include published posts.
>
> This error doesn't seem to occur for normal posts/tags, only for custom
> posts types/taxonomies.

New description:

 I have registered a custom post type and an associated non-hierarchical
 custom taxonomy.

 The tag count, both on edit-tags.php?taxonomy=my_tag&post_type=my_post and
 when using wp_tag_cloud, includes draft & trashed posts in the count.

 The count should only include published posts.

 This error doesn't seem to occur for normal posts/tags, only for custom
 posts types/taxonomies.

 --
 Added by dd32: The count on the taxonomy page is currently global, It
 includes All post types regardless of the post status (ie. published vs
 trashed, published vs custom_status)

--

Comment (by dd32):

 I've closed #14706 as a duplicate of this ticket.

 The count on the taxonomy page is currently global, It includes All post
 types regardless of the post status (ie. published vs trashed, published
 vs custom_status)

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


More information about the wp-trac mailing list