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

WordPress Trac noreply at wordpress.org
Fri Oct 14 20:57:09 UTC 2016


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

Comment (by rachelbaker):

 @sswells We cannot use the combine operator for the associative arrays
 because it does not merge arrays recursively.  See https://3v4l.org/ultWd

 It looks like the only way to patch this correctly needs to allow numeric
 array keys to be retained without being re-indexed, while still merging
 recursive data as well.

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


More information about the wp-trac mailing list