Make WordPress Core

Ticket #54757: admin-header.php.patch

File admin-header.php.patch, 909 bytes (added by shyamavadukar, 3 years ago)
  • admin-header.php

     
    213213
    214214// Print a CSS class to make PHP errors visible.
    215215if ( $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         */
    218222        && ( E_NOTICE !== $error_get_last['type'] || 'wp-config.php' !== wp_basename( $error_get_last['file'] ) )
    219223) {
    220224        $admin_body_class .= ' php-error';