Make WordPress Core


Ignore:
Timestamp:
10/17/2025 08:59:33 PM (3 months ago)
Author:
joedolson
Message:

Twenty Twelve: Remove code and checks for obsolete browsers.

Remove IE specific code from Twenty Twelve. 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/twentytwelve/functions.php

    r60514 r60961  
    218218    wp_enqueue_style( 'twentytwelve-block-style', get_template_directory_uri() . '/css/blocks.css', array( 'twentytwelve-style' ), '20240812' );
    219219
    220     // Loads the Internet Explorer specific stylesheet.
    221     wp_enqueue_style( 'twentytwelve-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentytwelve-style' ), '20240722' );
    222     $wp_styles->add_data( 'twentytwelve-ie', 'conditional', 'lt IE 9' );
     220    // Register the Internet Explorer specific stylesheet.
     221    wp_register_style( 'twentytwelve-ie', false, array( 'twentytwelve-style' ) );
    223222}
    224223add_action( 'wp_enqueue_scripts', 'twentytwelve_scripts_styles' );
Note: See TracChangeset for help on using the changeset viewer.