Make WordPress Core


Ignore:
Timestamp:
05/02/2020 08:59:31 PM (5 years ago)
Author:
johnbillion
Message:

Administration: Reduce the chance that a PHP error message that occurs before the admin menu gets output is covered by the admin menu.

Props EmpireOfLight, afercia, Mte90, audrasjb, sunnyratilal

Fixes #35155

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/admin-header.php

    r47474 r47745  
    199199        $admin_body_class .= ' is-dark-theme';
    200200    }
     201}
     202
     203// Print a CSS class to make PHP errors visible.
     204if ( error_get_last() && WP_DEBUG && WP_DEBUG_DISPLAY && ini_get( 'display_errors' ) ) {
     205    $admin_body_class .= ' php-error';
    201206}
    202207
Note: See TracChangeset for help on using the changeset viewer.