Changeset 48955
- Timestamp:
- 09/07/2020 01:03:42 PM (4 years ago)
- Location:
- branches/5.5
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.5
-
branches/5.5/src/wp-admin/admin-header.php
r48851 r48955 199 199 } 200 200 201 $error = error_get_last();201 $error_get_last = error_get_last(); 202 202 203 203 // Print a CSS class to make PHP errors visible. 204 if ( $error && 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 ['type'] || 'wp-config.php' !== wp_basename( $error['file'] ) )207 && ( E_NOTICE !== $error_get_last['type'] || 'wp-config.php' !== wp_basename( $error_get_last['file'] ) ) 208 208 ) { 209 209 $admin_body_class .= ' php-error'; 210 210 } 211 211 212 unset( $error );212 unset( $error_get_last ); 213 213 214 214 ?>
Note: See TracChangeset
for help on using the changeset viewer.