Changes between Initial Version and Version 27 of Ticket #45933
- Timestamp:
- 01/17/2019 07:05:55 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #45933
-
Property
Status
changed from
newtoreviewing -
Property
Summary
changed from
WSODs protection returns incorrect content typetoWSODs protection returns incorrect content type for JSON Requests - Property Owner set to flixos90
-
Property
Milestone
changed from
Awaiting Reviewto5.1 - Property Keywords needs-testing added
-
Property
Status
changed from
-
Ticket #45933 – Description
initial v27 1 While testing WSODs protection ( #44458 ), I noticed that on REST API calls and RSS feeds,that wrong content type is returned. The REST API expects valid json to be returned. Other invalid rest requests, return an error state in the following format.1 While testing WSODs protection ( #44458 ), I noticed that on REST API calls that wrong content type is returned. The REST API expects valid json to be returned. Other invalid rest requests, return an error state in the following format. 2 2 3 3 {{{#!php … … 11 11 }}} 12 12 13 As for RSS feeds, what is returned is not valid XML and will likely break most feed readers that are parsing them.14 13 15 14 This issue is that `wp_die`, has go handles for, admin ajax, xmlrpc and html responses. But doesn't check for feed or rest api rests.