Make WordPress Core


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

Twenty Fifteen: 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), removes IE-specific code in general stylesheets, and removes IE specific code
from Customizer, header.php and custom-header.php.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfifteen/functions.php

    r55929 r55981  
    436436    wp_enqueue_style( 'twentyfifteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentyfifteen-style' ), '20230122' );
    437437
    438     // Load the Internet Explorer specific stylesheet.
    439     wp_enqueue_style( 'twentyfifteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentyfifteen-style' ), '20220908' );
     438    // Register the Internet Explorer specific stylesheet.
     439    wp_register_style( 'twentyfifteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentyfifteen-style' ), '20220908' );
    440440    wp_style_add_data( 'twentyfifteen-ie', 'conditional', 'lt IE 9' );
    441441
    442     // Load the Internet Explorer 7 specific stylesheet.
    443     wp_enqueue_style( 'twentyfifteen-ie7', get_template_directory_uri() . '/css/ie7.css', array( 'twentyfifteen-style' ), '20141210' );
     442    // Register the Internet Explorer 7 specific stylesheet.
     443    wp_register_style( 'twentyfifteen-ie7', get_template_directory_uri() . '/css/ie7.css', array( 'twentyfifteen-style' ), '20141210' );
    444444    wp_style_add_data( 'twentyfifteen-ie7', 'conditional', 'lt IE 8' );
    445445
Note: See TracChangeset for help on using the changeset viewer.