[wp-trac] [WordPress Trac] #42021: _update_posts_count_on_transition_post_status firing for incorrect post types
WordPress Trac
noreply at wordpress.org
Mon Oct 2 03:08:20 UTC 2017
#42021: _update_posts_count_on_transition_post_status firing for incorrect post
types
----------------------------------------+-------------------------
Reporter: sboisvert | Owner: jeremyfelt
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.9
Component: Networks and Sites | Version: 4.0
Severity: normal | Resolution: fixed
Keywords: has-patch needs-unit-tests | Focuses: multisite
----------------------------------------+-------------------------
Changes (by jeremyfelt):
* status: reviewing => closed
* resolution: => fixed
Comment:
In [changeset:"41665"]:
{{{
#!CommitTicketReference repository="" revision="41665"
Multisite: Only update a site's `post` count when post types of `post` are
updated.
Previously, the query to update the count of published posts would run
every time any post type transitioned between a `publish`/non-published
status or was deleted.
Props sboisvert, JPry, spacedmonkey.
Fixes #42021.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42021#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list