[wp-trac] [WordPress Trac] #27952: get_blog_details()->post_count Does not subtract deleted posts
WordPress Trac
noreply at wordpress.org
Mon Apr 21 18:39:56 UTC 2014
#27952: get_blog_details()->post_count Does not subtract deleted posts
----------------------------------------+-----------------------------
Reporter: GSMcNamara | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Networks and Sites | Version: 3.8.1
Severity: minor | Resolution:
Keywords: needs-patch good-first-bug | Focuses: multisite
----------------------------------------+-----------------------------
Changes (by johnbillion):
* keywords: => needs-patch good-first-bug
* severity: normal => minor
* milestone: Awaiting Review => Future Release
Comment:
Confirmed. The `update_posts_count()` function is only hooked into the
`publish_post` action. It should probably be hooked into `delete_post` and
`transition_post_status` too in order to catch all relevant changes.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27952#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list