[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
Tue Jul 9 18:42:18 UTC 2019
#39889: Improve/Fix REST Response on Multisite when an endpoint for a non-existent
site is hit.
------------------------------------------+--------------------------------
Reporter: nerrad | Owner: (none)
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
------------------------------------------+--------------------------------
Comment (by TimothyBlynJacobs):
It seems like we might be able to utilize `wp_is_json_request` and the
`wp_die` improvements to make this simpler to handle.
I think this occurs in `ms_load_current_site_and_network()`?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39889#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list