mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-05 02:10:45 +01:00
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 Built from https://develop.svn.wordpress.org/trunk@47745 git-svn-id: http://core.svn.wordpress.org/trunk@47521 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
55117c5376
commit
5641afd43b
@ -200,6 +200,11 @@ if ( $current_screen->is_block_editor() ) {
|
||||
}
|
||||
}
|
||||
|
||||
// Print a CSS class to make PHP errors visible.
|
||||
if ( error_get_last() && WP_DEBUG && WP_DEBUG_DISPLAY && ini_get( 'display_errors' ) ) {
|
||||
$admin_body_class .= ' php-error';
|
||||
}
|
||||
|
||||
?>
|
||||
</head>
|
||||
<?php
|
||||
|
@ -14,6 +14,15 @@
|
||||
z-index: 1; /* positive z-index to avoid elastic scrolling woes in Safari */
|
||||
}
|
||||
|
||||
.php-error #adminmenuback {
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.php-error #adminmenuback,
|
||||
.php-error #adminmenuwrap {
|
||||
margin-top: 2em;
|
||||
}
|
||||
|
||||
#adminmenu {
|
||||
clear: right;
|
||||
margin: 12px 0;
|
||||
|
2
wp-admin/css/admin-menu-rtl.min.css
vendored
2
wp-admin/css/admin-menu-rtl.min.css
vendored
File diff suppressed because one or more lines are too long
@ -13,6 +13,15 @@
|
||||
z-index: 1; /* positive z-index to avoid elastic scrolling woes in Safari */
|
||||
}
|
||||
|
||||
.php-error #adminmenuback {
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.php-error #adminmenuback,
|
||||
.php-error #adminmenuwrap {
|
||||
margin-top: 2em;
|
||||
}
|
||||
|
||||
#adminmenu {
|
||||
clear: left;
|
||||
margin: 12px 0;
|
||||
|
2
wp-admin/css/admin-menu.min.css
vendored
2
wp-admin/css/admin-menu.min.css
vendored
File diff suppressed because one or more lines are too long
@ -13,7 +13,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.5-alpha-47744';
|
||||
$wp_version = '5.5-alpha-47745';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user