Make WordPress Core


Ignore:
Timestamp:
06/22/2023 06:20:19 AM (18 months ago)
Author:
audrasjb
Message:

Twenty Thirteen: Remove IE specific resources.

This changeset switches the wp_enqueue_* functions to wp_register_* for IE-related resources, which maintains handles, source references, etc., keeps all
IE-specific files within the theme package to avoid errors, and requires site admins to opt in to loading them in the theme.

It also replaces the content of html5.js shiv with a comment (to avoid 404s), and removes IE specific code from header.php.

Props desrosj, sabernhardt, audrasjb, neychok, oglekler.
See #56699.

File:
1 edited

Legend:

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

    r55276 r55982  
    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.