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

WordPress Trac noreply at wordpress.org
Fri Jul 6 13:55:32 UTC 2018


#44534: wp_debug_mode() does not turn off display_errors for REST requests
--------------------------+-----------------------------
 Reporter:  chrisl27      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  REST API      |    Version:  4.9.7
 Severity:  normal        |   Keywords:
  Focuses:  rest-api      |
--------------------------+-----------------------------
 There is code in wp-includes/load.php:336 that attempts to ini_set(
 'display_errors', 0 ) for REST requests, but it checks defined(
 'REST_REQUEST' ) too early in the process.

 REST_REQUEST is defined in rest_api_loaded() where it is run from the
 parse_request action, after wp_debug_mode() has run.

 Original changeset was: https://core.trac.wordpress.org/changeset/36530

 For Trac ticket: https://core.trac.wordpress.org/ticket/34915

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


More information about the wp-trac mailing list