[wp-trac] [WordPress Trac] #45989: WSODs protection still 500 on REST API request
WordPress Trac
noreply at wordpress.org
Fri Mar 22 23:11:08 UTC 2019
#45989: WSODs protection still 500 on REST API request
------------------------------------------------+-------------------------
Reporter: spacedmonkey | Owner: schlessera
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 5.2
Component: Bootstrap/Load | Version: trunk
Severity: major | Resolution:
Keywords: servehappy needs-testing has-patch | Focuses: multisite
------------------------------------------------+-------------------------
Comment (by spacedmonkey):
@TimothyBlynJacobs Good catch on recovery mode not working if header
already sent. In 45989.7.diff, I fix this issue.
As for your other feedback, I think it is impossible to display a message
once the render has started. It is important to know what has already been
rendered. Some example of page types.
- XML - RSS feeds
- JSON - rest api
- JSONp - Rest api
- string - ajax request
- xmlrpc - xmlrpc.
- html - front / back end.
There is just no way to know what format to output in. If it is html, you
dont even know if the body tag has been opened. I don't think this is
something we can fix in 5.2 / phase 1.Unless I am missing something.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45989#comment:34>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list