[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
Thu Feb 23 00:22:36 UTC 2017


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

Comment (by mnelson4):

 > Whitespace in the tests looks off,

 Oh right, I think I used spaces instead of tabs. I can fix


 > we can use a PHPUnit data provider to make the tests cleaner.

 Oh I actually wasn't even aware of data providers. Makes a lot of sense.
 This is one reason I'm glad to participate in core!

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


More information about the wp-trac mailing list