[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 19:15:07 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):

 > You've misunderstood the code. If your libraries don't pass a filter
 key, nothing changes -- no filters are applied, and no micro-performance
 hit occurs as a result of your code.

 Didn't realize. But there is at least one `if` to determine if it should,
 right?  Some some performance affect that I'd agree probably not a
 concern.

 Okay, objection retracted if it only affects explicit usage.

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


More information about the wp-trac mailing list