[wp-trac] [WordPress Trac] #53218: Make apply_filters() variadic
WordPress Trac
noreply at wordpress.org
Fri Mar 18 18:21:55 UTC 2022
#53218: Make apply_filters() variadic
------------------------------------+--------------------------
Reporter: johnbillion | Owner: johnbillion
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.0
Component: Plugins | Version: 5.3
Severity: normal | Resolution: fixed
Keywords: has-patch early commit | Focuses:
------------------------------------+--------------------------
Changes (by johnbillion):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"52952" 52952]:
{{{
#!CommitTicketReference repository="" revision="52952"
Plugins: Convert `apply_filters()` into a proper variadic function.
This makes its signature more correct by implementing the spread operator,
and adjusts the internal logic correspondingly without affecting
performance.
Props jrf, SergeyBiryukov, davidbaumwald, mauriac, johnbillion
Fixes #53218
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53218#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list