[wp-trac] [WordPress Trac] #38306: WP_REST_Request->get_params strips numeric keys

WordPress Trac noreply at wordpress.org
Wed Nov 2 03:38:42 UTC 2016


#38306: WP_REST_Request->get_params strips numeric keys
--------------------------+-----------------------
 Reporter:  sswells       |       Owner:  joehoyle
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  4.7
Component:  REST API      |     Version:  4.4
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+-----------------------

Comment (by rachelbaker):

 While discussing this ticket with @joehoyle he pointed out that @sswells
 was using a numeric string in her array key, and that would result in the
 `+` operator recursively combining the arrays: https://3v4l.org/qdhJC

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


More information about the wp-trac mailing list