[wp-trac] [WordPress Trac] #17856: magic_quotes_gpc future-proof enhancements

WordPress Trac wp-trac at lists.automattic.com
Thu Jun 23 08:17:14 UTC 2011


#17856: magic_quotes_gpc future-proof enhancements
--------------------------+------------------------------
 Reporter:  troydavisson  |       Owner:
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------

Comment (by johnbillion):

 In your patch, calling each of the `wp_input_*()` functions once (from
 `wp_input_init()`) just to populate their static variables seems
 pointless. Why not populate the static variable the first time each
 function is called?

 There should be a way to access a deep value of a multidimensional array.
 I've seen CMSes and frameworks that allow a pseudo array key notation in
 the form of

 {{{
 wp_input_post( 'foo[bar][baz]' )
 }}}

 and others that allow for an arbitrary number of arguments in the form of

 {{{
 wp_input_post( 'foo', 'bar', 'baz' );
 }}}

 in order to access `$_POST['foo']['bar']['baz']`.

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


More information about the wp-trac mailing list