[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 17:59:26 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 nacin):

 I'm not sure we'd want to allow such brute-forcing. The approach we have
 discussed previously is to add filters directly to argument arrays
 wherever they are desired. wp_parse_args() should be considered a low-
 level utility that should ideally stay filter-free. See #11212 for a lot
 more.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/26673#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list