Make WordPress Core


Ignore:
Timestamp:
10/17/2025 09:02:55 PM (12 months ago)
Author:
joedolson
Message:

Twenty Fifteen: Remove code and checks for obsolete browsers.

Remove IE specific code from Twenty Fifteen. Remove custom IE stylesheet contents, the HTML5 shiv contents (also targeting Safari 4.x and Firefox 3.x), and IE-specific code.

Props desrosj, sabernhardt, neychok, joedolson.
See #58836.

File:
1 edited

Legend:

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

    r60913 r60964  
    443443        wp_enqueue_style( 'twentyfifteen-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentyfifteen-style' ), '20240715' );
    444444
    445         // Register the Internet Explorer specific stylesheet.
    446         wp_register_style( 'twentyfifteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentyfifteen-style' ), '20220908' );
    447         wp_style_add_data( 'twentyfifteen-ie', 'conditional', 'lt IE 9' );
    448 
    449         // Register the Internet Explorer 7 specific stylesheet.
    450         wp_register_style( 'twentyfifteen-ie7', get_template_directory_uri() . '/css/ie7.css', array( 'twentyfifteen-style' ), '20141210' );
    451         wp_style_add_data( 'twentyfifteen-ie7', 'conditional', 'lt IE 8' );
    452 
    453         // Skip-link fix is no longer enqueued by default.
     445        // Register handles for removed stylesheets and scripts.
     446        wp_register_style( 'twentyfifteen-ie', false, array( 'twentyfifteen-style' ) );
     447        wp_register_style( 'twentyfifteen-ie7', false, array( 'twentyfifteen-style' ) );
    454448        wp_register_script( 'twentyfifteen-skip-link-focus-fix', get_template_directory_uri() . '/js/skip-link-focus-fix.js', array(), '20230526', array( 'in_footer' => true ) );
    455449
Note: See TracChangeset for help on using the changeset viewer.