[wp-trac] [WordPress Trac] #39889: Improve/Fix REST Response on Multisite when an endpoint for a non-existent site is hit.
WordPress Trac
noreply at wordpress.org
Thu Feb 16 17:52:40 UTC 2017
#39889: Improve/Fix REST Response on Multisite when an endpoint for a non-existent
site is hit.
------------------------------------------+--------------------------------
Reporter: nerrad | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: REST API | Version: 4.7
Severity: normal | Resolution:
Keywords: needs-patch needs-unit-tests | Focuses: multisite, rest-
| api
------------------------------------------+--------------------------------
Changes (by jnylen0):
* keywords: => needs-patch needs-unit-tests
* milestone: Awaiting Review => Future Release
Comment:
I am +1 on fixing this - the REST API should return a JSON 404 in the same
style as the rest of our `WP_Error` responses.
The question is how. May be tricky depending on how early the current 404
is returned.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39889#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list