WordPress.org

Make WordPress Core

Ticket #17897: 17897.patch

File 17897.patch, 4.5 KB (added by azaozz, 7 years ago)
  • wp-admin/admin-header.php

     
    2828$admin_title = apply_filters( 'admin_title', $admin_title, $title );
    2929
    3030wp_user_settings();
    31 wp_menu_unfold();
    3231
    3332?>
    3433<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  • wp-admin/css/global.dev.css

     
    7878        padding-bottom: 65px;
    7979}
    8080
    81 .folded #wpcontent,
    82 .folded #footer {
     81.js.folded #wpcontent,
     82.js.folded #footer {
    8383        margin-left: 52px;
    8484}
    8585
     
    9191#adminmenuback,
    9292#adminmenuwrap,
    9393#adminmenu,
    94 .folded #adminmenu .wp-submenu.sub-open,
    95 .folded #adminmenu .wp-submenu-wrap {
     94.js.folded #adminmenu .wp-submenu.sub-open,
     95.js.folded #adminmenu .wp-submenu-wrap {
    9696        width: 145px;
    9797}
    9898
     
    113113        list-style: none;
    114114}
    115115
    116 .folded #adminmenuback,
    117 .folded #adminmenuwrap,
    118 .folded #adminmenu,
    119 .folded #adminmenu li.menu-top {
     116.js.folded #adminmenuback,
     117.js.folded #adminmenuwrap,
     118.js.folded #adminmenu,
     119.js.folded #adminmenu li.menu-top {
    120120        width: 32px;
    121121}
    122122
  • wp-admin/css/wp-admin.dev.css

     
    12191219        display: none;
    12201220}
    12211221
    1222 .folded #adminmenu div.wp-submenu-head {
     1222.js.folded #adminmenu div.wp-submenu-head {
    12231223        display: block;
    12241224}
    12251225
    1226 .folded #adminmenu a.menu-top,
     1226.js.folded #adminmenu a.menu-top,
    12271227body.no-js #adminmenu .wp-menu-toggle,
    1228 .folded #adminmenu div.wp-menu-toggle {
     1228.js.folded #adminmenu div.wp-menu-toggle {
    12291229        display: none;
    12301230}
    12311231
     
    12401240        width: 28px;
    12411241        height: 28px;
    12421242}
    1243 .folded #adminmenu div.wp-menu-image {
     1243.js.folded #adminmenu div.wp-menu-image {
    12441244        width: 32px;
    12451245}
    12461246
     
    13031303        margin: 0;
    13041304}
    13051305
    1306 .folded #adminmenu li.menu-top {
     1306.js.folded #adminmenu li.menu-top {
    13071307        width: 32px;
    13081308        height: 29px;
    13091309        border-width: 1px 0;
     
    13391339        border-style: solid;
    13401340}
    13411341
    1342 .folded #adminmenu .wp-submenu {
     1342.js.folded #adminmenu .wp-submenu {
    13431343        display: block;
    13441344        position: absolute;
    13451345        top: -5px;
     
    13531353        -o-transition: width 200ms ease-out;
    13541354        transition: width 200ms ease-out;
    13551355}
    1356 .folded #adminmenu .wp-submenu.sub-open {
     1356.js.folded #adminmenu .wp-submenu.sub-open {
    13571357        padding: 0 8px 8px 0;
    13581358}
    13591359
     
    13641364        border-style: solid;
    13651365}
    13661366
    1367 .folded #adminmenu .wp-submenu-wrap {
     1367.js.folded #adminmenu .wp-submenu-wrap {
    13681368        margin-top: 4px;
    13691369        border-width: 0 1px 1px 0;
    13701370        border-style: solid;
     
    13791379        border-top-right-radius: 3px;
    13801380}
    13811381
    1382 .folded #adminmenu .wp-submenu ul {
     1382.js.folded #adminmenu .wp-submenu ul {
    13831383        border-width: 0 0 0 1px;
    13841384        border-style: solid;
    13851385}
    13861386
    1387 .folded #adminmenu .wp-submenu a {
     1387.js.folded #adminmenu .wp-submenu a {
    13881388        padding-left: 10px;
    13891389}
    13901390
    1391 .folded #adminmenu a.wp-has-submenu {
     1391.js.folded #adminmenu a.wp-has-submenu {
    13921392        margin-left: 40px;
    13931393}
    13941394
     
    14951495        font-size: 12px;
    14961496        line-height: 34px;
    14971497}
    1498 .folded #collapse-menu span {
     1498
     1499.js.folded #collapse-menu span {
    14991500        display: none;
    15001501}
     1502
    15011503#collapse-button,
    15021504#collapse-button div {
    15031505        width: 15px;
    15041506        height: 15px;
    15051507}
     1508
    15061509#collapse-button {
    15071510        float: left;
    15081511        margin: 8px 6px;
  • wp-admin/includes/misc.php

     
    373373        }
    374374}
    375375
    376 function wp_menu_unfold() {
    377         if ( isset($_GET['unfoldmenu']) ) {
    378                 delete_user_setting('mfold');
    379                 wp_redirect( remove_query_arg( 'unfoldmenu', stripslashes($_SERVER['REQUEST_URI']) ) );
    380                 exit;
    381         }
    382 }
    383 
    384376/**
    385377 * Check if rewrite rule for WordPress already exists in the IIS 7 configuration file
    386378 *
  • wp-admin/menu-header.php

     
    169169                echo "</li>";
    170170        }
    171171
    172         echo '<li id="collapse-menu"><div id="collapse-button"><div></div></div>';
     172        echo '<li id="collapse-menu" class="hide-if-no-js"><div id="collapse-button"><div></div></div>';
    173173        echo '<span>' . esc_html__( 'Collapse menu' ) . '</span>';
    174174        echo '</li>';
    175175}