[wp-trac] [WordPress Trac] #43691: class-wp-rest-server sends response body regardless of actual response code or result type
WordPress Trac
noreply at wordpress.org
Sun Jul 7 17:06:07 UTC 2019
#43691: class-wp-rest-server sends response body regardless of actual response code
or result type
------------------------------------------+--------------------------------
Reporter: matthias.thiel | Owner: TimothyBlynJacobs
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 5.3
Component: REST API | Version: 4.4
Severity: normal | Resolution:
Keywords: needs-patch needs-unit-tests | Focuses: rest-api
------------------------------------------+--------------------------------
Changes (by TimothyBlynJacobs):
* keywords: needs-patch => needs-patch needs-unit-tests
Comment:
Thanks for the patch @andizer!
After discussing in #core-restapi, I think it makes sense to drop the
`_doing_it_wrong` if people are sending `null` without using the `204`
response code and instead return `null` there as well.
Do you want to work on unit tests for this?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43691#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list