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

WordPress Trac noreply at wordpress.org
Mon Jun 21 00:24:21 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 jrf):

 Oh and just for reference:

 > `WP_Hooks::apply_filters()` can not be simplified further as - even
 within WP Core -, there are filter functions which expect to receive the
 $value to be filtered by reference.

 This remark was about the `WP_Hooks::apply_filters()` class method, not
 about the global `apply_filters()` function (which the current patch is
 touching).

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


More information about the wp-trac mailing list