Make WordPress Core

Ticket #51383: 51383.1.diff

File 51383.1.diff, 687 bytes (added by audrasjb, 4 years ago)

Patch refreshed agains trunk

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

    diff --git a/src/wp-admin/admin-header.php b/src/wp-admin/admin-header.php
    index 7ee3d03b74..1463e8278c 100644
    a b if ( $error_get_last && WP_DEBUG && WP_DEBUG_DISPLAY && ini_get( 'display_errors 
    200200        // Don't print the class for PHP notices in wp-config.php, as they happen before WP_DEBUG takes effect,
    201201        // and should not be displayed with the `error_reporting` level previously set in wp-load.php.
    202202        && ( E_NOTICE !== $error_get_last['type'] || 'wp-config.php' !== wp_basename( $error_get_last['file'] ) )
     203        && ( E_WARNING !== $error_get_last['type'] )
    203204) {
    204205        $admin_body_class .= ' php-error';
    205206}