WordPress.org

Make WordPress Core

Ticket #49126: 49126.3.diff

File 49126.3.diff, 16.2 KB (added by audrasjb, 9 months ago)

Remove all unnecessary ie8 CSS fixes

  • 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 a3d8f4f262..1ac83c9ed6 100644
    a b div.wp-menu-image:before { 
    382382        color: #00b9eb;
    383383}
    384384
    385 /* IE8 doesn't redraw the pseudo elements unless you make a change to the content, this restore the initial color after hover */
    386 .ie8 #adminmenu li.opensub div.wp-menu-image:before {
    387         color: #a0a5aa;
    388 }
    389 
    390385.folded #adminmenu div.wp-menu-image {
    391386        width: 35px;
    392387        height: 30px;
  • src/wp-admin/css/colors/_admin.scss

    diff --git a/src/wp-admin/css/colors/_admin.scss b/src/wp-admin/css/colors/_admin.scss
    index ca01267a24..848586058c 100644
    a b ul#adminmenu > li.current > a.current:after { 
    270270#adminmenu li.wp-has-current-submenu.opensub div.wp-menu-image:before,
    271271#adminmenu li:hover div.wp-menu-image:before,
    272272#adminmenu li a:focus div.wp-menu-image:before,
    273 #adminmenu li.opensub div.wp-menu-image:before,
    274 .ie8 #adminmenu li.opensub div.wp-menu-image:before {
     273#adminmenu li.opensub div.wp-menu-image:before {
    275274        color: $menu-current-icon;
    276275}
    277276
  • src/wp-admin/css/common.css

    diff --git a/src/wp-admin/css/common.css b/src/wp-admin/css/common.css
    index 5c97f14453..1e1c5cd5f4 100644
    a b a:focus .media-icon img, 
    279279                outline: 1px solid transparent;
    280280}
    281281
    282 .ie8 a:focus {
    283         outline: #5b9dd9 solid 1px;
    284 }
    285 
    286282#adminmenu a:focus {
    287283        box-shadow: none;
    288284        /* Only visible in Windows High Contrast mode */
    div.error p, 
    14411437                0 0 2px 1px rgba(30, 140, 190, 0.8);
    14421438}
    14431439
    1444 .ie8 .notice-dismiss:focus {
    1445         outline: 1px solid #5b9dd9;
    1446 }
    1447 
    14481440.notice-success,
    14491441div.updated {
    14501442        border-left-color: #46b450;
    form.upgrade .hint { 
    17661758        font-weight: 600;
    17671759}
    17681760
    1769 .ie8 #screen-options-wrap legend {
    1770         color: inherit;
    1771 }
    1772 
    17731761.metabox-prefs label {
    17741762        display: inline-block;
    17751763        padding-right: 15px;
    h1.nav-tab-wrapper, /* Back-compat for pre-4.4 */ 
    22472235        clear: both;
    22482236}
    22492237
    2250 .ie8 .nav-tab-wrapper {
    2251         /* contain floats establishing a new block formatting context */
    2252         display: inline-block;
    2253         width: 100%;
    2254         vertical-align: top;
    2255 }
    2256 
    22572238/*------------------------------------------------------------------------------
    22582239  26.0 - Misc
    22592240------------------------------------------------------------------------------*/
  • src/wp-admin/css/customize-nav-menus.css

    diff --git a/src/wp-admin/css/customize-nav-menus.css b/src/wp-admin/css/customize-nav-menus.css
    index 145938252e..5ce9eb46bb 100644
    a b  
    475475        -moz-osx-font-smoothing: grayscale;
    476476}
    477477
    478 .ie8 .menu-item-bar .item-delete:before {
    479         top: -10px;
    480 }
    481 
    482478.menu-item-bar .item-delete:hover,
    483479.menu-item-bar .item-delete:focus {
    484480        box-shadow: none;
  • src/wp-admin/css/dashboard.css

    diff --git a/src/wp-admin/css/dashboard.css b/src/wp-admin/css/dashboard.css
    index 2784b804d0..457aa9fc19 100644
    a b  
    3838        border: none !important;
    3939}
    4040
    41 .ie8 #wpbody-content #dashboard-widgets .postbox-container {
    42         width: 49.5%;
    43 }
    44 
    45 .ie8 #wpbody-content #dashboard-widgets #postbox-container-2,
    46 .ie8 #wpbody-content #dashboard-widgets #postbox-container-3,
    47 .ie8 #wpbody-content #dashboard-widgets #postbox-container-4 {
    48         float: right;
    49         width: 50.5%;
    50 }
    51 
    52 .ie8 #dashboard-widgets #postbox-container-3 .empty-container,
    53 .ie8 #dashboard-widgets #postbox-container-4 .empty-container {
    54         border: 0 none;
    55         height: 0;
    56         min-height: 0;
    57 }
    58 
    5941#dashboard-widgets-wrap {
    6042        overflow: hidden;
    6143        margin: 0 -8px;
     
    180162        float: left;
    181163}
    182164
    183 .ie8 .welcome-panel .welcome-panel-column {
    184         min-width: 230px;
    185 }
    186 
    187165.welcome-panel .welcome-panel-column:first-child {
    188166        width: 36%;
    189167}
  • src/wp-admin/css/edit.css

    diff --git a/src/wp-admin/css/edit.css b/src/wp-admin/css/edit.css
    index 1c2b3336ca..77e6f75b06 100644
    a b form#tags-filter { 
    635635        max-width: 100%;
    636636}
    637637
    638 .ie8 #poststuff .inside #parent_id,
    639 .ie8 #poststuff .inside #page_template {
    640         width: 250px;
    641 }
    642 
    643638.post-attributes-label-wrapper {
    644639        margin-bottom: 0.5em;
    645640}
  • src/wp-admin/css/install.css

    diff --git a/src/wp-admin/css/install.css b/src/wp-admin/css/install.css
    index a9a2cdf85f..7f0f48cc32 100644
    a b a:focus { 
    3030                0 0 2px 1px rgba(30, 140, 190, 0.8);
    3131}
    3232
    33 .ie8 a:focus {
    34         outline: #5b9dd9 solid 1px;
    35 }
    36 
    3733h1, h2 {
    3834        border-bottom: 1px solid #ddd;
    3935        clear: both;
  • src/wp-admin/css/list-tables.css

    diff --git a/src/wp-admin/css/list-tables.css b/src/wp-admin/css/list-tables.css
    index 3e55bb2d0e..f621aef2ab 100644
    a b  
    6262        text-align: center;
    6363}
    6464
    65 .ie8 .column-response .comment-count-no-comments,
    66 .ie8 .column-response .comment-count-approved,
    67 .ie8 .column-comments .comment-count-no-comments,
    68 .ie8 .column-comments .comment-count-approved {
    69         min-width: 0;
    70 }
    71 
    7265.column-response .post-com-count-no-comments:after,
    7366.column-response .post-com-count-approved:after,
    7467.column-comments .post-com-count-no-comments:after,
    th.asc a:focus span.sorting-indicator:before { 
    513506                0 0 2px 1px rgba(30, 140, 190, 0.8);
    514507}
    515508
    516 .ie8 .wp-list-table .toggle-row:focus:before {
    517         outline: #5b9dd9 solid 1px;
    518 }
    519 
    520509.wp-list-table .toggle-row:active {
    521510        box-shadow: none;
    522511}
    ul.cat-checklist { 
    10801069        max-width: 80%;
    10811070}
    10821071
    1083 .ie8 .inline-edit-row #post_parent,
    1084 .ie8 .inline-edit-row select[name="page_template"] {
    1085         width: 250px;
    1086 }
    1087 
    10881072.quick-edit-row-post fieldset label.inline-edit-status {
    10891073        float: left;
    10901074}
  • src/wp-admin/css/revisions.css

    diff --git a/src/wp-admin/css/revisions.css b/src/wp-admin/css/revisions.css
    index 16b8278aa3..dcd83aaa32 100644
    a b table.diff .diff-addedline ins { 
    385385        right: 20px;
    386386}
    387387
    388 .ie8 .revisions-tooltip-arrow > span {
    389         left: 15px;
    390         top: -25px;
    391         -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand', M11=0.7071067811865476, M12=-0.7071067811865475, M21=0.7071067811865475, M22=0.7071067811865476)";
    392 }
    393 
    394 .ie8 .revisions-tooltip.flipped .revisions-tooltip-arrow > span {
    395         right: 25px;
    396 }
    397 
    398388.revisions-tooltip,
    399389.revisions-tooltip-arrow > span {
    400390        border: 1px solid #ddd;
  • src/wp-admin/css/themes.css

    diff --git a/src/wp-admin/css/themes.css b/src/wp-admin/css/themes.css
    index fed12dcf89..db759d207d 100644
    a b body.js .theme-browser.search-loading { 
    6161        box-sizing: border-box;
    6262}
    6363
    64 .ie8 .theme-browser .theme {
    65         width: 30%;
    66         margin: 0 3% 4% 0;
    67 }
    68 
    6964.theme-browser .theme:nth-child(3n) {
    7065        margin-right: 0;
    7166}
    body.folded .theme-browser ~ .theme-overlay .theme-wrap { 
    504499        border-top: 1px solid #eee;
    505500}
    506501
    507 .ie8 .theme-overlay .theme-actions {
    508         border: 1px solid #eee;
    509 }
    510 
    511502.theme-overlay .theme-actions a {
    512503        margin-right: 5px;
    513504        margin-bottom: 5px;
  • src/wp-admin/includes/template.php

    diff --git a/src/wp-admin/includes/template.php b/src/wp-admin/includes/template.php
    index c140849f6e..bcb238bca5 100644
    a b function _wp_admin_html_begin() { 
    24422442
    24432443        ?>
    24442444<!DOCTYPE html>
    2445 <!--[if IE 8]>
    2446 <html xmlns="http://www.w3.org/1999/xhtml" class="ie8 <?php echo $admin_html_class; ?>"
    2447         <?php
    2448         /**
    2449          * Fires inside the HTML tag in the admin header.
    2450          *
    2451          * @since 2.2.0
    2452          */
    2453         do_action( 'admin_xml_ns' );
    2454 
    2455         language_attributes();
    2456         ?>
    2457         >
    2458 <![endif]-->
    2459 <!--[if !(IE 8) ]><!-->
    2460 <html xmlns="http://www.w3.org/1999/xhtml" class="<?php echo $admin_html_class; ?>"
     2445<html class="<?php echo $admin_html_class; ?>"
    24612446        <?php
    24622447        /** This action is documented in wp-admin/includes/template.php */
    24632448        do_action( 'admin_xml_ns' );
    function _wp_admin_html_begin() { 
    24652450        language_attributes();
    24662451        ?>
    24672452        >
    2468 <!--<![endif]-->
    24692453<head>
    24702454<meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php echo get_option( 'blog_charset' ); ?>" />
    24712455        <?php
  • src/wp-admin/install.php

    diff --git a/src/wp-admin/install.php b/src/wp-admin/install.php
    index 2168c03e18..3dd744e211 100644
    a b  
    1010if ( false ) {
    1111        ?>
    1212<!DOCTYPE html>
    13 <html xmlns="http://www.w3.org/1999/xhtml">
     13<html>
    1414<head>
    1515        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    1616        <title>Error: PHP is not running</title>
    function display_header( $body_classes = '' ) { 
    6565        }
    6666        ?>
    6767<!DOCTYPE html>
    68 <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
     68<html <?php language_attributes(); ?>>
    6969<head>
    7070        <meta name="viewport" content="width=device-width" />
    7171        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  • src/wp-admin/maint/repair.php

    diff --git a/src/wp-admin/maint/repair.php b/src/wp-admin/maint/repair.php
    index e6bc2418da..d48af125db 100644
    a b require_once dirname( dirname( __DIR__ ) ) . '/wp-load.php'; 
    1212header( 'Content-Type: text/html; charset=utf-8' );
    1313?>
    1414<!DOCTYPE html>
    15 <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
     15<html <?php language_attributes(); ?>>
    1616<head>
    1717        <meta name="viewport" content="width=device-width" />
    1818        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  • src/wp-admin/setup-config.php

    diff --git a/src/wp-admin/setup-config.php b/src/wp-admin/setup-config.php
    index f88e629f01..331b0617f6 100644
    a b function setup_config_display_header( $body_classes = array() ) { 
    106106        header( 'Content-Type: text/html; charset=utf-8' );
    107107        ?>
    108108<!DOCTYPE html>
    109 <html xmlns="http://www.w3.org/1999/xhtml"<?php echo $dir_attr; ?>>
     109<html <?php echo $dir_attr; ?>>
    110110<head>
    111111        <meta name="viewport" content="width=device-width" />
    112112        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  • src/wp-admin/upgrade.php

    diff --git a/src/wp-admin/upgrade.php b/src/wp-admin/upgrade.php
    index 2d27f50c21..639310a01d 100644
    a b if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) ) { 
    5656header( 'Content-Type: ' . get_option( 'html_type' ) . '; charset=' . get_option( 'blog_charset' ) );
    5757?>
    5858<!DOCTYPE html>
    59 <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
     59<html <?php language_attributes(); ?>>
    6060<head>
    6161        <meta name="viewport" content="width=device-width" />
    6262        <meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php echo get_option( 'blog_charset' ); ?>" />
  • 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 d0f4457e7a..54ba903f62 100644
    a b html:lang(he-il) .rtl #wpadminbar * { 
    149149        float: none;
    150150}
    151151
    152 #wpadminbar.ie7 .menupop .ab-sub-wrapper,
    153 #wpadminbar.ie7 .shortlink-input {
    154         top: 32px;
    155         left: 0;
    156 }
    157 
    158152#wpadminbar .ab-top-menu > .menupop > .ab-sub-wrapper {
    159153        min-width: 100%;
    160154}
    html:lang(he-il) .rtl #wpadminbar * { 
    422416        min-width: 270px;
    423417}
    424418
    425 #wpadminbar.ie8 #wp-admin-bar-my-account.with-avatar .ab-item {
    426         white-space: nowrap;
    427 }
    428 
    429419#wpadminbar #wp-admin-bar-user-actions > li {
    430420        margin-left: 16px;
    431421        margin-right: 16px;
    html:lang(he-il) .rtl #wpadminbar * { 
    489479        display: inline;
    490480}
    491481
    492 #wpadminbar.ie8 #wp-admin-bar-my-account.with-avatar > .ab-empty-item img,
    493 #wpadminbar.ie8 #wp-admin-bar-my-account.with-avatar > a img {
    494         width: auto;
    495 }
    496 
    497482/**
    498483 * WP Logo
    499484 */
    html:lang(he-il) .rtl #wpadminbar * { 
    606591/**
    607592 * Search
    608593 */
    609 #wpadminbar.ie8 #wp-admin-bar-search {
    610         display: block;
    611         min-width: 32px;
    612 }
    613594#wpadminbar #wp-admin-bar-search .ab-item {
    614595        padding: 0;
    615596        background: transparent;
    html:lang(he-il) .rtl #wpadminbar * { 
    670651        border: 0;
    671652}
    672653
    673 #wpadminbar.ie7 > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input {
    674         margin-top: 3px;
    675         width: 120px;
    676 }
    677 
    678 #wpadminbar.ie8 > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input {
    679         /* IE8 z-index bug with transparent / empty elements - fill in with an encoded transparent GIF */
    680         background: transparent 0 0 repeat scroll url("data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");
    681 }
    682 
    683 /* IE8 doesn't redraw the pseudo elements unless you make a change to the content */
    684 #wpadminbar.ie8 #adminbarsearch.adminbar-focused:before {
    685         content: "\f179 "; /* extra space */
    686 }
    687 
    688 #wpadminbar.ie8 > #wp-toolbar > #wp-admin-bar-top-secondary > #wp-admin-bar-search #adminbarsearch input.adminbar-input:focus {
    689         background: #fff;
    690         z-index: -1;
    691 }
    692 
    693654#wpadminbar #adminbarsearch .adminbar-button {
    694655        display: none;
    695656}
    html:lang(he-il) .rtl #wpadminbar * { 
    746707        box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    747708}
    748709
    749 /**
    750  * IE 6-targeted rules
    751  */
    752 * html #wpadminbar {
    753         overflow: hidden;
    754         position: absolute;
    755 }
    756 
    757 * html #wpadminbar .quicklinks ul li a {
    758         float: left;
    759 }
    760 
    761 * html #wpadminbar .menupop a span {
    762         background-image: none;
    763 }
    764 
    765710/* No @font-face support */
    766711.no-font-face #wpadminbar ul.ab-top-menu > li > a.ab-item {
    767712        display: block;
  • src/wp-includes/css/buttons.css

    diff --git a/src/wp-includes/css/buttons.css b/src/wp-includes/css/buttons.css
    index 86844ddde0..9f55c02bb3 100644
    a b TABLE OF CONTENTS: 
    233233        background: transparent !important;
    234234}
    235235
    236 .ie8 .wp-core-ui .button-link:focus {
    237         outline: #5b9dd9 solid 1px;
    238 }
    239 
    240236/* ----------------------------------------------------------------------------
    241237  3.0 - Primary Button Style
    242238---------------------------------------------------------------------------- */
  • src/wp-includes/functions.php

    diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php
    index bc9f276b89..a23a64f944 100644
    a b function _default_wp_die_handler( $message, $title = '', $args = array() ) { 
    34203420                }
    34213421                ?>
    34223422<!DOCTYPE html>
    3423 <html xmlns="http://www.w3.org/1999/xhtml" <?php echo $dir_attr; ?>>
     3423<html <?php echo $dir_attr; ?>>
    34243424<head>
    34253425        <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $parsed_args['charset']; ?>" />
    34263426        <meta name="viewport" content="width=device-width">
  • src/wp-includes/ms-deprecated.php

    diff --git a/src/wp-includes/ms-deprecated.php b/src/wp-includes/ms-deprecated.php
    index cd30478811..1e4607b356 100644
    a b function graceful_fail( $message ) { 
    9191        $message = apply_filters( 'graceful_fail', $message );
    9292        $message_template = apply_filters( 'graceful_fail_template',
    9393'<!DOCTYPE html>
    94 <html xmlns="http://www.w3.org/1999/xhtml"><head>
     94<html><head>
    9595<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    9696<title>Error!</title>
    9797<style type="text/css">
  • src/wp-includes/theme-compat/header.php

    diff --git a/src/wp-includes/theme-compat/header.php b/src/wp-includes/theme-compat/header.php
    index 9aef7e98c0..59aa3c9fc8 100644
    a b _deprecated_file( 
    1616);
    1717?>
    1818<!DOCTYPE html>
    19 <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
     19<html <?php language_attributes(); ?>>
    2020<head>
    2121<link rel="profile" href="http://gmpg.org/xfn/11" />
    2222<meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php bloginfo( 'charset' ); ?>" />
  • src/wp-login.php

    diff --git a/src/wp-login.php b/src/wp-login.php
    index 0b552ef326..788fec33c7 100644
    a b function login_header( $title = 'Log In', $message = '', $wp_error = null ) { 
    8686        $login_title = apply_filters( 'login_title', $login_title, $title );
    8787
    8888        ?><!DOCTYPE html>
    89         <!--[if IE 8]>
    90                 <html xmlns="http://www.w3.org/1999/xhtml" class="ie8" <?php language_attributes(); ?>>
    91         <![endif]-->
    92         <!--[if !(IE 8) ]><!-->
    93                 <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    94         <!--<![endif]-->
     89        <html <?php language_attributes(); ?>>
    9590        <head>
    9691        <meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php bloginfo( 'charset' ); ?>" />
    9792        <title><?php echo $login_title; ?></title>