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

WordPress Trac noreply at wordpress.org
Sun Mar 3 05:44:46 UTC 2013


#14084: Custom taxonomy count includes draft & trashed posts
-------------------------------------------------+-------------------------
 Reporter:  lumpysimon                           |       Owner:  garyc40
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:
Component:  Taxonomy                             |     Version:  3.0
 Severity:  normal                               |  Resolution:  invalid
 Keywords:  has-patch 3.2-early dev-feedback     |
  needs-refresh                                  |
-------------------------------------------------+-------------------------
Changes (by nacin):

 * status:  reopened => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 Replying to [comment:31 jeremyclarke]:
 > Why not fix it in the background?

 We do. Check out wp_update_term_count_now(). If no update_count_callback
 is specified, then we use _update_post_term_count() as long as all
 attached object types are post types.

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


More information about the wp-trac mailing list