[wp-trac] [WordPress Trac] #42961: Rest API doesnt handle empty arrays in querystring correctly

WordPress Trac noreply at wordpress.org
Thu Mar 22 23:47:50 UTC 2018


#42961: Rest API doesnt handle empty arrays in querystring correctly
--------------------------+------------------------------
 Reporter:  steffanhalv   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  REST API      |     Version:  4.7
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:  rest-api
--------------------------+------------------------------

Comment (by steffanhalv):

 Yes, I agree. Current handling of empty arrays in querystrings force apps
 to post using json, which is very stricted by same origin policy. It can
 be handled by using method override though, but it would be nice to accept
 this in querystrings to, as querystrings is actually supposed to be
 supported by the api.

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


More information about the wp-trac mailing list