[wp-trac] [WordPress Trac] #43665: XHR requests disregard the WP_DEBUG_DISPLAY flag

WordPress Trac noreply at wordpress.org
Fri Mar 30 09:34:03 UTC 2018


#43665: XHR requests disregard the WP_DEBUG_DISPLAY flag
--------------------------+-----------------------------
 Reporter:  OwenMelbz     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  4.9.5
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Within `wp-includes/load.php` and the `wp_debug_mode()` method it does

 {{{#!php
 <?php
 if ( defined( 'XMLRPC_REQUEST' ) || defined( 'REST_REQUEST' ) || (
 defined( 'WP_INSTALLING' ) && WP_INSTALLING ) || wp_doing_ajax() ) {
         @ini_set( 'display_errors', 0 );
 }
 }}}

 This then turns off the rendering of PHP issues.

 This makes it very problematic when actively developing ajax endpoints via
 `admin-ajax.php` as you have to keep turning them back on.

 It seems that it should at least appreciate the `WP_DEBUG_DISPLAY`
 constant

 Is this something we could look at getting addressed?

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


More information about the wp-trac mailing list