Make WordPress Core


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

Twenty Twelve: Remove code and checks for obsolete browsers.

Remove IE specific code from Twenty Twelve. Remove custom IE stylesheet contents, the HTML5 shiv contents (also targeting Safari 4.x and Firefox 3.x), and IE-specific code. Change relevant enqueues to registrations.

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

File:
1 edited

Legend:

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

    r60483 r60961  
    1010 */
    1111?><!DOCTYPE html>
    12 <!--[if IE 7]>
    13 <html class="ie ie7" <?php language_attributes(); ?>>
    14 <![endif]-->
    15 <!--[if IE 8]>
    16 <html class="ie ie8" <?php language_attributes(); ?>>
    17 <![endif]-->
    18 <!--[if !(IE 7) & !(IE 8)]><!-->
    1912<html <?php language_attributes(); ?>>
    20 <!--<![endif]-->
    2113<head>
    2214<meta charset="<?php bloginfo( 'charset' ); ?>" />
     
    2517<link rel="profile" href="https://gmpg.org/xfn/11" />
    2618<link rel="pingback" href="<?php echo esc_url( get_bloginfo( 'pingback_url' ) ); ?>">
    27 <?php // Loads HTML5 JavaScript file to add support for HTML5 elements in older IE versions. ?>
    28 <!--[if lt IE 9]>
    29 <script src="<?php echo esc_url( get_template_directory_uri() ); ?>/js/html5.js?ver=3.7.0" type="text/javascript"></script>
    30 <![endif]-->
    3119<?php wp_head(); ?>
    3220</head>
Note: See TracChangeset for help on using the changeset viewer.