[wp-trac] [WordPress Trac] #45933: WSODs protection returns incorrect content type
WordPress Trac
noreply at wordpress.org
Sat Jan 12 13:32:51 UTC 2019
#45933: WSODs protection returns incorrect content type
------------------------------------+------------------------------
Reporter: spacedmonkey | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bootstrap/Load | Version: trunk
Severity: normal | Resolution:
Keywords: needs-patch servehappy | Focuses: multisite
------------------------------------+------------------------------
Comment (by ocean90):
Instead of `wp_doing_rest()` you could use `wp_is_json_request()` from
#44534. See also #42061.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45933#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list