﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
17548,wp_trash_post() does not call update_post_count(),joehoyle,ryan,"Calling `wp_trash_post()` on either a custom post type of a post does not update the term counts until it has been it is ""permanently deleted"", however `_update_post_term_count()` (which is the default ""update_count_callback"" for tags and categories) calculates the term coint based of published posts. This means if you trash hundreds of posts - without emptying the trash, the term counts become way out. 

To me, it would make sense for `wp_trash_post()` to call update_term_count() if the ""update_count_callback"" is ""_update_post_term_count()"" (as we know it will be calculating term count sbased off published status)

I can create a patch if this is accepted",defect (bug),closed,normal,3.3,Taxonomy,3.2,normal,fixed,has-patch dev-feedback needs-testing,joehoyle@… amaury@… zanematthew@…
