[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 23:56:48 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
-------------------------------------------------+-------------------------

Comment (by dd32):

 The PHP Warning is specifically:
 > wp-includes/class-wp-taxonomy.php:430 - call_user_func() expects
 parameter 1 to be a valid callback, no array or string given

 Adding a `use( $args )` to the closure callback will fix it, if that's
 acceptable for core usage, otherwise the callback will need to run
 something like `$args = get_taxonomy( $taxonomy )`.

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


More information about the wp-trac mailing list