Make WordPress Core


Ignore:
Timestamp:
06/22/2023 06:20:19 AM (11 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/functions.php

    r55929 r55982  
    337337    wp_enqueue_style( 'twentythirteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentythirteen-style' ), '20230122' );
    338338
    339     // Loads the Internet Explorer specific stylesheet.
    340     wp_enqueue_style( 'twentythirteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentythirteen-style' ), '20150214' );
     339    // Registers the Internet Explorer specific stylesheet.
     340    wp_register_style( 'twentythirteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentythirteen-style' ), '20150214' );
    341341    wp_style_add_data( 'twentythirteen-ie', 'conditional', 'lt IE 9' );
    342342}
Note: See TracChangeset for help on using the changeset viewer.