Ticket #51383: 51383.patch
File 51383.patch, 1004 bytes (added by , 4 years ago) |
---|
-
src/wp-admin/admin-header.php
201 201 $error_get_last = error_get_last(); 202 202 203 203 // Print a CSS class to make PHP errors visible. 204 if ( $error_get_last && WP_DEBUG && WP_DEBUG_DISPLAY && ini_get( 'display_errors' ) 204 if ( $error_get_last && WP_DEBUG && WP_DEBUG_DISPLAY && ini_get( 'display_errors' ) 205 205 // Don't print the class for PHP notices in wp-config.php, as they happen before WP_DEBUG takes effect, 206 206 // and should not be displayed with the `error_reporting` level previously set in wp-load.php. 207 && ( E_NOTICE !== $error_get_last['type'] || 'wp-config.php' !== wp_basename( $error_get_last['file'] ) ) 207 && ( E_NOTICE !== $error_get_last['type'] || 'wp-config.php' !== wp_basename( $error_get_last['file'] ) ) 208 && ( E_WARNING !== $error_get_last['type'] ) 208 209 ) { 209 210 $admin_body_class .= ' php-error'; 210 211 }