[wp-trac] [WordPress Trac] #63562: Term counts should not be recalculated when a post transitions between statuses that are not counted
WordPress Trac
noreply at wordpress.org
Thu Jun 12 18:48:00 UTC 2025
#63562: Term counts should not be recalculated when a post transitions between
statuses that are not counted
-------------------------------+------------------------------------------
Reporter: johnbillion | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version:
Severity: normal | Keywords: needs-patch needs-unit-tests
Focuses: performance |
-------------------------------+------------------------------------------
This is similar to #42522 but subtly different.
When a post transitions from one status to another, term counts for the
terms of the post are unnecessarily recalculated even when neither the old
status or the new status are statuses which are included when counting
terms. An example is when an autosave is first created.
In simpler terms, term counts for a post should only be recalculated when
either its old or new status is `publish`. It just needs to respect other
statuses added via the `update_post_term_count_statuses` filter too.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63562>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list