[wp-trac] [WordPress Trac] #38733: REST API: Maintenance Mode sends HTML in request.

WordPress Trac noreply at wordpress.org
Tue Jul 9 21:32:56 UTC 2019


#38733: REST API: Maintenance Mode sends HTML in request.
--------------------------------+----------------------------
 Reporter:  TimothyBlynJacobs   |       Owner:  kadamwhite
     Type:  defect (bug)        |      Status:  closed
 Priority:  normal              |   Milestone:  WordPress.org
Component:  WordPress.org site  |     Version:
 Severity:  normal              |  Resolution:  fixed
 Keywords:  needs-codex         |     Focuses:  rest-api
--------------------------------+----------------------------
Changes (by TimothyBlynJacobs):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 This has ended up being fixed by maintenance mode using `wp_die` which
 accounts for a `Accept: application/json` header.

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


More information about the wp-trac mailing list