[wp-trac] [WordPress Trac] #53218: Make apply_filters() variadic
WordPress Trac
noreply at wordpress.org
Mon Jun 21 00:20:01 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):
@johnbillion I've had a quick look and I would strongly recommend against
this patch.
The performance of a function like `array_merge()` is often even worse
than `func_get_args()`, so in effect, especially with using it twice, this
would make one of the most used functions in WP slower instead of faster
decreasing the overall performance (which the variadic changes were
about).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53218#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list