[wp-trac] [WordPress Trac] #42522: Terms are uselessly counted when saving a post

WordPress Trac noreply at wordpress.org
Sun Jun 29 22:25:37 UTC 2025


#42522: Terms are uselessly counted when saving a post
--------------------------------------+--------------------------
 Reporter:  Chouby                    |       Owner:  johnbillion
     Type:  defect (bug)              |      Status:  closed
 Priority:  normal                    |   Milestone:  6.9
Component:  Taxonomy                  |     Version:  3.3
 Severity:  normal                    |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests  |     Focuses:  performance
--------------------------------------+--------------------------
Changes (by johnbillion):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"60365" 60365]:
 {{{
 #!CommitTicketReference repository="" revision="60365"
 Taxonomy: Avoid unnecessarily recalculating term counts when a post is
 updated and its status is unchanged.

 If the terms of the post are changed then the term recounting is still
 handled by `wp_update_term_count()` inside `wp_set_object_terms()`.

 Props pbearne, johnbillion, peterwilsoncc, Chouby

 Fixes #42522
 }}}

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


More information about the wp-trac mailing list