WordPress.org

Make WordPress Core

Ticket #35155: 35155.patch

File 35155.patch, 971 bytes (added by afercia, 5 years ago)
  • src/wp-admin/admin-header.php

     
    169169        $admin_body_class .= ' network-admin';
    170170
    171171$admin_body_class .= ' no-customize-support no-svg';
    172 
     172// Print a CSS class to make PHP errors visible.
     173if ( error_get_last() ) {
     174        $admin_body_class .= ' php-error';
     175}
    173176?>
    174177</head>
    175178<?php
  • src/wp-admin/css/admin-menu.css

     
    1313        z-index: 1; /* positive z-index to avoid elastic scrolling woes in Safari */
    1414}
    1515
     16.php-error #adminmenuback {
     17        position: absolute;
     18}
     19
     20.php-error #adminmenuback,
     21.php-error #adminmenuwrap {
     22        margin-top: 20px;
     23}
     24
    1625#adminmenu {
    1726        clear: left;
    1827        margin: 12px 0;