[wp-trac] [WordPress Trac] #44534: wp_debug_mode() does not turn off display_errors for REST requests

WordPress Trac noreply at wordpress.org
Mon Oct 15 13:53:08 UTC 2018


#44534: wp_debug_mode() does not turn off display_errors for REST requests
--------------------------+------------------------
 Reporter:  chrisl27      |       Owner:  earnjam
     Type:  defect (bug)  |      Status:  reviewing
 Priority:  normal        |   Milestone:  5.0
Component:  REST API      |     Version:  4.5
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  rest-api
--------------------------+------------------------

Comment (by danielbachhuber):

 @earnjam Is there a reason you went with `CONTENT_TYPE` over
 `HTTP_ACCEPT`?

 If I `jQuery.getJSON('/wp-json/');` in my console, I get:

 {{{
 'HTTP_ACCEPT' => 'application/json, text/javascript, */*; q=0.01',
 'CONTENT_TYPE' => '',
 }}}

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


More information about the wp-trac mailing list