[wp-trac] [WordPress Trac] #40351: Term post re-counts scale poorly, are common and difficult to avoid

WordPress Trac noreply at wordpress.org
Thu Oct 22 09:30:12 UTC 2020


#40351: Term post re-counts scale poorly, are common and difficult to avoid
-------------------------------------------------+-------------------------
 Reporter:  mattoperry                           |       Owner:  whyisjake
     Type:  enhancement                          |      Status:  reopened
 Priority:  normal                               |   Milestone:  5.6
Component:  Taxonomy                             |     Version:  4.8
 Severity:  normal                               |  Resolution:
 Keywords:  needs-dev-note has-patch has-unit-   |     Focuses:
  tests                                          |  performance
-------------------------------------------------+-------------------------
Changes (by Chouby):

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


Comment:

 The new function `wp_modify_term_count_by_now()` fires the actions
 `edit_term_taxonomy` and `edited_term_taxonomy` with a wrong value for the
 `$taxonomy` parameter. It sends the `WP_Taxonomy` object instead of the
 taxonomy name, as documented for the actions.
 I propose [attachment:"40351.4.diff"] to fix the issue.

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


More information about the wp-trac mailing list