[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 19:51:16 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 jnylen0):

 Replying to [comment:2 swissspidy]:
 > 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.

 This isn't a good argument not to support something, IMO.  We support
 plenty of functionality that some servers may not allow, usually with
 appropriate fallbacks and documentation.  One example is the `_method`
 parameter documented [https://developer.wordpress.org/rest-api/using-the-
 rest-api/global-parameters/ here].

 Replying to [comment:3 mnelson4]:
 > Do you think I should hold off making a patch until there is some more
 discussion?

 I would go ahead and submit the patch, that will help us get it fixed more
 quickly.

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


More information about the wp-trac mailing list