[wp-trac] [WordPress Trac] #17548: wp_trash_post() does not call update_post_count()

WordPress Trac wp-trac at lists.automattic.com
Tue Oct 4 21:33:22 UTC 2011

#17548: wp_trash_post() does not call update_post_count()
 Reporter:  joehoyle                              |       Owner:  ryan
     Type:  defect (bug)                          |      Status:  reopened
 Priority:  normal                                |   Milestone:  3.3
Component:  Taxonomy                              |     Version:  3.2
 Severity:  normal                                |  Resolution:
 Keywords:  has-patch dev-feedback needs-testing  |

Comment (by ryan):

 Do we even need to query against post_type?  If a taxonomy is registered
 against multiple post types, then the count is going to be stomped back
 and forth with the last post_type updated being reflected in the count.
 There count is not stored per post_type.

Ticket URL: <http://core.trac.wordpress.org/ticket/17548#comment:29>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list