[wp-trac] [WordPress Trac] #45085: different args passed to "term_name" and "term_{$field}" filters

WordPress Trac noreply at wordpress.org
Tue Oct 17 23:07:17 UTC 2023


#45085: different args passed to "term_name" and "term_{$field}" filters
-------------------------+-----------------------------------
 Reporter:  pbiron       |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Taxonomy     |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:  docs, administration
-------------------------+-----------------------------------

Comment (by w33zy):

 I ran into this issue today. It will become prevent as plugin developers
 start adding types to the functions and methods, so typing the second
 argument of the `tern_name` filter method with `WP_Term` will throw a type
 error in PHP 7.4.

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


More information about the wp-trac mailing list