Make WordPress Core

Changeset 47745


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

Location:
trunk/src/wp-admin
Files:
2 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
  • trunk/src/wp-admin/css/admin-menu.css

    r46561 r47745  
    1212    bottom: -120px;
    1313    z-index: 1; /* positive z-index to avoid elastic scrolling woes in Safari */
     14}
     15
     16.php-error #adminmenuback {
     17    position: absolute;
     18}
     19
     20.php-error #adminmenuback,
     21.php-error #adminmenuwrap {
     22    margin-top: 2em;
    1423}
    1524
Note: See TracChangeset for help on using the changeset viewer.