Make WordPress Core


Ignore:
Timestamp:
10/17/2025 08:57:48 PM (3 months ago)
Author:
joedolson
Message:

Twenty Eleven: Remove code and checks for obsolete browsers.

Remove IE specific code from Twenty Eleven. Remove custom IE stylesheet contents, the HTML5 shiv contents (also targeting Safari 4.x and Firefox 3.x), and IE-specific code.

Props desrosj, sabernhardt, karmatosed, neychok, metodiew, mukesh27, aristath, joedolson.
See #58836.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyeleven/header.php

    r60483 r60960  
    1010 */
    1111?><!DOCTYPE html>
    12 <!--[if IE 6]>
    13 <html id="ie6" <?php language_attributes(); ?>>
    14 <![endif]-->
    15 <!--[if IE 7]>
    16 <html id="ie7" <?php language_attributes(); ?>>
    17 <![endif]-->
    18 <!--[if IE 8]>
    19 <html id="ie8" <?php language_attributes(); ?>>
    20 <![endif]-->
    21 <!--[if !(IE 6) & !(IE 7) & !(IE 8)]><!-->
    2212<html <?php language_attributes(); ?>>
    23 <!--<![endif]-->
    2413<head>
    2514<meta charset="<?php bloginfo( 'charset' ); ?>" />
     
    5241<link rel="stylesheet" type="text/css" media="all" href="<?php echo esc_url( get_stylesheet_uri() ); ?>?ver=20250415" />
    5342<link rel="pingback" href="<?php echo esc_url( get_bloginfo( 'pingback_url' ) ); ?>">
    54 <!--[if lt IE 9]>
    55 <script src="<?php echo esc_url( get_template_directory_uri() ); ?>/js/html5.js?ver=3.7.0" type="text/javascript"></script>
    56 <![endif]-->
    5743<?php
    5844    /*
Note: See TracChangeset for help on using the changeset viewer.