[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
Mon Jul 21 23:44:32 UTC 2025


#63562: Term counts should not be recalculated when a post transitions between
statuses that are not counted
----------------------------------------+--------------------------
 Reporter:  johnbillion                 |       Owner:  johnbillion
     Type:  defect (bug)                |      Status:  reviewing
 Priority:  normal                      |   Milestone:  6.9
Component:  Posts, Post Types           |     Version:
 Severity:  normal                      |  Resolution:
 Keywords:  needs-unit-tests has-patch  |     Focuses:  performance
----------------------------------------+--------------------------

Comment (by peterwilsoncc):

 I've added a note to the effect on the pull request, I think the same
 unnecessarily counting takes place when both the old and new statuses
 included in the term count (when the `update_post_term_count_statuses`
 modifies the statuses included).

 Let's cover that case while reducing useless recounts.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63562#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list