- Timestamp:
- 08/24/2020 10:46:30 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/admin-header.php
r48412 r48850 199 199 } 200 200 201 $error = error_get_last(); 202 201 203 // Print a CSS class to make PHP errors visible. 202 if ( error_get_last() && WP_DEBUG && WP_DEBUG_DISPLAY && ini_get( 'display_errors' ) ) { 204 if ( $error && WP_DEBUG && WP_DEBUG_DISPLAY && ini_get( 'display_errors' ) 205 // Don't print the class for PHP notices in wp-config.php, as they happen before WP_DEBUG takes effect, 206 // and should not be displayed with the `error_reporting` level previously set in wp-load.php. 207 && ( E_NOTICE !== $error['type'] || 'wp-config.php' !== wp_basename( $error['file'] ) ) 208 ) { 203 209 $admin_body_class .= ' php-error'; 204 210 } 211 212 unset( $error ); 205 213 206 214 ?>
Note: See TracChangeset
for help on using the changeset viewer.