[wp-trac] [WordPress Trac] #19888: We need a recursive version of wp_parse_args(), namely wp_parse_args_r()

WordPress Trac wp-trac at lists.automattic.com
Tue Jan 24 21:54:33 UTC 2012


#19888: We need a recursive version of wp_parse_args(), namely wp_parse_args_r()
-------------------------+----------------------
 Reporter:  Master Jake  |       Owner:
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:
Component:  General      |     Version:
 Severity:  normal       |  Resolution:  wontfix
 Keywords:               |
-------------------------+----------------------
Changes (by scribu):

 * status:  new => closed
 * resolution:   => wontfix
 * milestone:  Awaiting Review =>


Comment:

 One example of an ambiguous case:

 {{{
 $defaults = array(
   'foo' => 'bar',
   'fruit' => array( 'apple', 'orange' )
 );
 }}}

 wp_parse_args_r() would have no way of knowing what to do about 'fruit'.

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


More information about the wp-trac mailing list