[wp-trac] [WordPress Trac] #26673: Enhance wp_parse_args() by adding filters before/after the array_merge()

WordPress Trac noreply at wordpress.org
Mon Feb 3 02:05:29 UTC 2014


#26673: Enhance wp_parse_args() by adding filters before/after the array_merge()
-----------------------------------+------------------------------
 Reporter:  johnjamesjacoby        |       Owner:
     Type:  enhancement            |      Status:  new
 Priority:  normal                 |   Milestone:  Awaiting Review
Component:  General                |     Version:
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch 2nd-opinion  |     Focuses:
-----------------------------------+------------------------------

Comment (by nacin):

 Can you show me a patch that turns a few wp_parse_args() into this. Say,
 the ones in class-wp-upgrader.php and comment-template.php.

 I also don't see a need for two filters. It just slows things down. Have
 the filter run after the merge, but be passed the initial defaults and
 arguments too.

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


More information about the wp-trac mailing list