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

WordPress Trac noreply at wordpress.org
Mon Jan 21 15:57:03 UTC 2019


#45933: WSODs protection returns incorrect content type for JSON Requests
----------------------------------+------------------------
 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
----------------------------------+------------------------
Changes (by flixos90):

 * keywords:  servehappy needs-testing has-patch => servehappy has-patch


Comment:

 [attachment:"45933.12.diff"] addresses the bugs pointed out by
 @schlessera. It also documents the new `$code` argument you can pass to
 `wp_die()` (currently only used by the JSON handler).

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


More information about the wp-trac mailing list