Make WordPress Core

Ticket #51383: 51383.patch

File 51383.patch, 1004 bytes (added by mukesh27, 4 years ago)

Added space between condition

  • src/wp-admin/admin-header.php

     
    201201$error_get_last = error_get_last();
    202202
    203203// Print a CSS class to make PHP errors visible.
    204 if ( $error_get_last && WP_DEBUG && WP_DEBUG_DISPLAY && ini_get( 'display_errors' )
     204if ( $error_get_last && WP_DEBUG && WP_DEBUG_DISPLAY && ini_get( 'display_errors' ) 
    205205        // Don't print the class for PHP notices in wp-config.php, as they happen before WP_DEBUG takes effect,
    206206        // 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'] )
    208209) {
    209210        $admin_body_class .= ' php-error';
    210211}