[wp-trac] [WordPress Trac] #55162: Incorrect parameter passed to update_term_cache from _prime_term_caches

WordPress Trac noreply at wordpress.org
Tue Feb 15 00:38:10 UTC 2022


#55162: Incorrect parameter passed to update_term_cache from _prime_term_caches
--------------------------+---------------------
 Reporter:  david.binda   |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  6.0
Component:  Taxonomy      |     Version:  4.6
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+---------------------
Changes (by azouamauriac):

 * keywords:   => has-patch


Comment:

 Hello thanks for your report, after some deeply search the ''$taxonomy''
 seems to become unused here [34999].

 Also it seems like ''_prime_term_caches'' is the only function which uses
 ''update_term_cache'' with the second parameter, so I think we can remove
 its second parameter we can remove safely "$taxonomy" in
 ''update_term_cache''.

 Thanks.

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


More information about the wp-trac mailing list