[wp-trac] [WordPress Trac] #53218: Make apply_filters() variadic

WordPress Trac noreply at wordpress.org
Thu Sep 16 23:03:28 UTC 2021


#53218: Make apply_filters() variadic
-------------------------+-----------------------------
 Reporter:  johnbillion  |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Future Release
Component:  Plugins      |     Version:  5.3
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+-----------------------------

Comment (by SergeyBiryukov):

 Replying to [comment:7 johnbillion]:
 > In [https://github.com/WordPress/wordpress-develop/pull/1259 PR 1259] I
 decided to revisit this with a view to removing as much of the args array
 processing in `apply_filters()` as possible in order to introduce the
 variadic `$args` parameter without negatively affecting performance.

 Thanks for revisiting! The PR looks good to me at a glance.

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


More information about the wp-trac mailing list