Make WordPress Core

Ticket #58455: 58455.1.diff

File 58455.1.diff, 5.5 KB (added by chiragrathod103, 3 years ago)

Thanks @mukesh27, here updated new diff with minor change.

  • src/js/_enqueues/admin/common.js

    diff --git a/src/js/_enqueues/admin/common.js b/src/js/_enqueues/admin/common.js
    index c2dfaaf99f..22bdea49e5 100644
    a b $( function() { 
    816816                currentPage = pageInput.val(),
    817817                isIOS = /iPhone|iPad|iPod/.test( navigator.userAgent ),
    818818                isAndroid = navigator.userAgent.indexOf( 'Android' ) !== -1,
    819                 $adminMenuWrap = $( '#adminmenuwrap' ),
     819                $adminMenuWrap = $( 'body:not(.php-error) #adminmenuwrap' ),
    820820                $wpwrap = $( '#wpwrap' ),
    821821                $adminmenu = $( '#adminmenu' ),
    822822                $overlay = $( '#wp-responsive-overlay' ),
  • src/wp-admin/css/admin-menu.css

    diff --git a/src/wp-admin/css/admin-menu.css b/src/wp-admin/css/admin-menu.css
    index 0dc59c6e6b..b38c3e43ba 100644
    a b  
    1616.php-error #adminmenuback {
    1717        position: absolute;
    1818}
     19.php-error #adminmenuwrap {
     20        position: absolute !important;
     21        top: 0 !important;
     22}
    1923
    2024.php-error #adminmenuback,
    2125.php-error #adminmenuwrap {
    22         margin-top: 2em;
     26        margin-top: 32px;
    2327}
    2428
    2529#adminmenu {
    div.wp-menu-image:before { 
    326330}
    327331
    328332/* Sticky admin menu */
    329 .sticky-menu #adminmenuwrap {
     333.sticky-menu:not(.php-error) #adminmenuwrap {
    330334        position: fixed;
    331335}
    332336
    li#wp-admin-bar-menu-toggle { 
    687691        .auto-fold #adminmenuback {
    688692                position: fixed;
    689693        }
     694        .php-error.auto-fold #adminmenuback {
     695                top: auto;
     696        }
    690697
    691698        .auto-fold #adminmenuback,
    692699        .auto-fold #adminmenuwrap {
  • src/wp-admin/css/edit.css

    diff --git a/src/wp-admin/css/edit.css b/src/wp-admin/css/edit.css
    index f808cf1c7f..8a9cd84bdf 100644
    a b form#tags-filter { 
    736736        margin-top: 5px;
    737737}
    738738
     739.php-error #wpbody-content {
     740        margin-top: 32px;
     741}
     742.php-error.block-editor-page #wpwrap {
     743        position: absolute;
     744        top: 0;
     745}
     746
    739747/* Emulates .wrap h1 styling */
    740748.privacy-settings-header h1,
    741749.health-check-header h1 {
    table.links-table { 
    17971805        #post-body-content {
    17981806                min-width: 0;
    17991807        }
     1808        .php-error.block-editor-page #wpwrap {
     1809                position: fixed;
     1810                top: 0;
     1811                background: white;
     1812        }
     1813        .php-error #wpwrap.wp-responsive-open #adminmenuwrap {
     1814                position: fixed;
     1815                top: 0;
     1816        }
    18001817
    18011818        #titlediv #title-prompt-text {
    18021819                padding: 10px;
  • src/wp-includes/css/admin-bar.css

    diff --git a/src/wp-includes/css/admin-bar.css b/src/wp-includes/css/admin-bar.css
    index 8f73274b03..abd75ef4eb 100644
    a b html:lang(he-il) .rtl #wpadminbar * { 
    850850                font: 28px/1 dashicons !important;
    851851                top: -3px;
    852852        }
     853        .php-error #wpadminbar #wp-admin-bar-wp-logo > .ab-item .ab-icon:before {
     854                top: 9px;
     855        }
    853856
    854857        #wpadminbar .ab-icon,
    855858        #wpadminbar .ab-item:before {