Make WordPress Core


Ignore:
Timestamp:
10/17/2025 09:01:47 PM (13 months ago)
Author:
joedolson
Message:

Twenty Fourteen: Remove code and checks for obsolete browsers.

Remove IE specific code from Twenty Fourteen. 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/twentyfourteen/header.php

    r60483 r60963  
    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         <!--[if lt IE 9]>
    28         <script src="<?php echo esc_url( get_template_directory_uri() ); ?>/js/html5.js?ver=3.7.0"></script>
    29         <![endif]-->
    3019        <?php wp_head(); ?>
    3120</head>
Note: See TracChangeset for help on using the changeset viewer.