[wp-trac] [WordPress Trac] #45933: WSODs protection returns incorrect content type

WordPress Trac noreply at wordpress.org
Wed Jan 16 13:37:22 UTC 2019


#45933: WSODs protection returns incorrect content type
----------------------------------+------------------------
 Reporter:  spacedmonkey          |       Owner:  flixos90
     Type:  defect (bug)          |      Status:  reviewing
 Priority:  normal                |   Milestone:  5.1
Component:  Bootstrap/Load        |     Version:  trunk
 Severity:  normal                |  Resolution:
 Keywords:  servehappy has-patch  |     Focuses:  multisite
----------------------------------+------------------------

Comment (by flixos90):

 While in #34999 the decision was not to support the REST API specifically
 in `wp_die()`, I think this use-case shows that there ''is'' a need to
 support specifically requested content types.

 The patch is looking good, we need to double-ensure though the output
 works in all formats - we should avoid relying on specific HTML markup
 here as much as possible.

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


More information about the wp-trac mailing list