[wp-trac] [WordPress Trac] #38733: REST API: Maintenance Mode sends HTML in request.
WordPress Trac
noreply at wordpress.org
Wed Nov 9 21:45:37 UTC 2016
#38733: REST API: Maintenance Mode sends HTML in request.
-------------------------------+-----------------------------
Reporter: TimothyBlynJacobs | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: REST API | Version:
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: rest-api
-------------------------------+-----------------------------
Changes (by jorbin):
* milestone: 4.7 => Future Release
Comment:
I agree it's less than ideal, but since 1) xmlrpc already has this
behavior 2) `wp_maintiance` runs before 99% of WordPress is loaded, so
it's much harder to check if something is a rest request 3) the http
status code is sent so clients know this wasn't a successful request.
Actions we should take for 4.7:
1. Ensure that the http code is documented
2. Ensure that any libraries we know about account for the status code for
maintenance.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38733#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list