[wp-trac] [WordPress Trac] #26673: Enhance wp_parse_args() by adding filters before/after the array_merge()
WordPress Trac
noreply at wordpress.org
Wed Dec 18 18:40:51 UTC 2013
#26673: Enhance wp_parse_args() by adding filters before/after the array_merge()
-----------------------------------+------------------
Reporter: johnjamesjacoby | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.9
Component: Plugins | Version:
Severity: normal | Resolution:
Keywords: has-patch 2nd-opinion |
-----------------------------------+------------------
Comment (by MikeSchinkel):
It's rare for me to argue against a filter but I have to side with @nacin
on this one. Adding a filter here if used could increase the potential
for unwanted side-effects more than a trivial amount. and for code that
uses `wp_parse_args()` ''**a lot** (like my libraries)'' it could have
significant performance implications.
Much better to use/add targeted, low impact filters and actions, IMHO at
least.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/26673#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list