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

WordPress Trac noreply at wordpress.org
Wed Oct 14 22:46:53 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-patch needs-unit-tests needs-  |     Focuses:
  dev-note                                       |  performance
-------------------------------------------------+-------------------------
Changes (by ocean90):

 * keywords:
     has-patch needs-testing early has-unit-tests dev-feedback needs-dev-
     note
     => needs-patch needs-unit-tests needs-dev-note
 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 @peterwilsoncc A closure has no access to variables of the parent scope
 thus the fallback for `update_count_by_callback` is producing PHP warnings
 because `$args['update_count_callback']` is not set.

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


More information about the wp-trac mailing list