[wp-trac] [WordPress Trac] #39933: WP_REST_Request::get_param() doesn't work for getting body params on DELETE requests

WordPress Trac noreply at wordpress.org
Wed Feb 22 08:07:03 UTC 2017


#39933: WP_REST_Request::get_param() doesn't work for getting body params on DELETE
requests
------------------------------------------+------------------------------
 Reporter:  mnelson4                      |       Owner:
     Type:  defect (bug)                  |      Status:  new
 Priority:  normal                        |   Milestone:  Awaiting Review
Component:  REST API                      |     Version:
 Severity:  normal                        |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |     Focuses:
------------------------------------------+------------------------------

Comment (by swissspidy):

 According to the [https://developer.wordpress.org/rest-api/requests/#body-
 params documentation], "Body parameters can and should be used for POST,
 PUT, and DELETE requests."

 However, I recall some discussion where it was said it's not supported
 because many servers don't support it, or something like that. The only
 thing I could find right now was https://wordpress.slack.com/archives
 /core-restapi/p1455121876002422 though.

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


More information about the wp-trac mailing list