Make WordPress Core


Ignore:
Timestamp:
05/06/2020 08:13:38 PM (5 years ago)
Author:
ocean90
Message:

Administration: Remove any CSS related to Internet Explorer versions 6 – 10.

In WordPress 3.2 support for IE6 was dropped, IE7 followed a few versions later. With the 4.8 release, WordPress officially ended support for Internet Explorer versions 8, 9, and 10. Yet, we still have shipped CSS for the unsupported IE versions....until now! Goodbye to ie.css and star hacks!

  • Removes ie.css and ie style handle.
  • Removes IE specific class names and any related CSS.
  • Drops support for IE8 and older in wp_customize_support_script().
  • Updates compatibility mode for CSS minification to ie11.

Props ayeshrajans, isabel_brison, afercia, netweb, peterwilsoncc, ocean90.
Fixes #17232, #46015.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-admin-bar.php

    r47219 r47771  
    425425
    426426    /**
    427      * @global bool $is_IE
    428427     * @param object $root
    429428     */
    430429    final protected function _render( $root ) {
    431         global $is_IE;
    432 
    433430        // Add browser classes.
    434431        // We have to do this here since admin bar shows on the front end.
    435432        $class = 'nojq nojs';
    436         if ( $is_IE ) {
    437             if ( strpos( $_SERVER['HTTP_USER_AGENT'], 'MSIE 7' ) ) {
    438                 $class .= ' ie7';
    439             } elseif ( strpos( $_SERVER['HTTP_USER_AGENT'], 'MSIE 8' ) ) {
    440                 $class .= ' ie8';
    441             } elseif ( strpos( $_SERVER['HTTP_USER_AGENT'], 'MSIE 9' ) ) {
    442                 $class .= ' ie9';
    443             }
    444         } elseif ( wp_is_mobile() ) {
     433        if ( wp_is_mobile() ) {
    445434            $class .= ' mobile';
    446435        }
Note: See TracChangeset for help on using the changeset viewer.