WordPress.org

Make WordPress Core

Ticket #17897: 17897-2.patch

File 17897-2.patch, 6.5 KB (added by azaozz, 7 years ago)

Adds fixes for IE7

  • 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/ie.dev.css

     
    3434}
    3535
    3636#wpbody-content input.button,
     37#wpbody-content input.button-primary,
    3738#wpbody-content input.button-secondary,
    3839#wpbody-content input.button-highlighted {
    39         padding: 2px 3px;
     40        overflow: visible;
    4041}
    4142
    42 #minor-publishing-actions input,
    43 #major-publishing-actions input {
    44         min-width: auto;
    45         padding-left: 0;
    46         padding-right: 0;
     43#dashboard-widgets #dashboard_quick_press form p.submit #publish {
     44        float: none;
    4745}
    4846
     47#dashboard-widgets h3 a {
     48        height: 14px;
     49        line-height: 14px;
     50}
     51
     52.tablenav-pages .current-page {
     53        vertical-align: middle;
     54}
     55
    4956#wpbody-content .postbox {
    5057        border: 1px solid #dfdfdf;
    5158}
     
    97104        margin: 0;
    98105}
    99106
    100 .folded #adminmenu li.menu-top {
     107.js.folded #adminmenu li.menu-top {
    101108        display: block;
    102109        zoom: 100%;
    103110}
     
    139146.major-publishing-actions,
    140147.wp-submenu,
    141148.wp-submenu li,
    142 .wp-menu-toggle {
     149.wp-menu-toggle,
     150#template,
     151#template div,
     152#editcat,
     153#addcat,
     154* html .stuffbox h3  {
    143155        zoom: 100%;
    144156}
    145157
     
    148160        zoom: 100%;
    149161}
    150162
    151 .folded #adminmenu .menu-top {
     163.js.folded #adminmenu .menu-top {
    152164        height: 30px;
    153165}
    154166
    155 .folded #adminmenu .wp-submenu {
     167.js.folded #adminmenu .wp-submenu {
    156168        margin: -1px 0 0 0;
    157169}
    158170
    159 #template,
    160 #template div,
    161 #editcat,
    162 #addcat,
    163 * html .stuffbox h3 {
    164         zoom: 100%;
     171.wp-menu-arrow {
     172        height: 28px;
    165173}
    166174
    167175.submitbox {
     
    213221}
    214222/* end Inline Editor */
    215223
    216 input {
    217         line-height: 1;
    218 }
    219 
    220224* html .row-actions {
    221225        visibility: visible;
    222226}
    223227
    224 #dashboard-widgets h3 a {
    225         height: 20px;
    226         line-height: 20px;
    227 }
    228 
    229228#wphead-info {
    230229        float: right;
    231230}
     
    343342        margin: 4px 0 0 -9px;
    344343}
    345344
    346 .tablenav .button-secondary, .nav .button-secondary {
    347         padding: 0 1px;
    348         vertical-align: middle;
     345.tablenav .button-secondary,
     346.nav .button-secondary {
     347        padding-top: 2px;
     348        padding-bottom: 2px;
    349349}
    350350
    351351.tablenav select {
  • 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}