Ticket #54757: admin-header.php.patch
File admin-header.php.patch, 909 bytes (added by , 3 years ago) |
---|
-
admin-header.php
213 213 214 214 // Print a CSS class to make PHP errors visible. 215 215 if ( $error_get_last && WP_DEBUG && WP_DEBUG_DISPLAY && ini_get( 'display_errors' ) 216 // Don't print the class for PHP notices in wp-config.php, as they happen before WP_DEBUG takes effect, 217 // and should not be displayed with the `error_reporting` level previously set in wp-load.php. 216 /** 217 * 218 * Don't print the class for PHP notices in wp-config.php, as they happen before WP_DEBUG takes effect, 219 * and should not be displayed with the `error_reporting` level previously set in wp-load.php. 220 * 221 */ 218 222 && ( E_NOTICE !== $error_get_last['type'] || 'wp-config.php' !== wp_basename( $error_get_last['file'] ) ) 219 223 ) { 220 224 $admin_body_class .= ' php-error';