Make WordPress Core

Ticket #30863: 30863.1.diff

File 30863.1.diff, 1.9 KB (added by valendesigns, 10 years ago)
  • src/wp-content/themes/twentytwelve/functions.php

    diff --git src/wp-content/themes/twentytwelve/functions.php src/wp-content/themes/twentytwelve/functions.php
    index 0b6e180..964be51 100644
    function twentytwelve_get_font_url() { 
    130130 * @since Twenty Twelve 1.0
    131131 */
    132132function twentytwelve_scripts_styles() {
    133         global $wp_styles;
     133        /*
     134         * Loads HTML5 JavaScript file to add support for HTML5 elements in older IE versions.
     135         */
     136        wp_enqueue_script( 'twentytwelve-html5', get_template_directory_uri() . '/js/html5.js', array(), '3.7.0' );
     137        wp_script_add_data( 'twentytwelve-html5', 'conditional', 'lt IE 9' );
    134138
    135139        /*
    136140         * Adds JavaScript to pages with the comment form to support
    function twentytwelve_scripts_styles() { 
    151155
    152156        // Loads the Internet Explorer specific stylesheet.
    153157        wp_enqueue_style( 'twentytwelve-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentytwelve-style' ), '20121010' );
    154         $wp_styles->add_data( 'twentytwelve-ie', 'conditional', 'lt IE 9' );
     158        wp_style_add_data( 'twentytwelve-ie', 'conditional', 'lt IE 9' );
    155159}
    156160add_action( 'wp_enqueue_scripts', 'twentytwelve_scripts_styles' );
    157161
  • src/wp-content/themes/twentytwelve/header.php

    diff --git src/wp-content/themes/twentytwelve/header.php src/wp-content/themes/twentytwelve/header.php
    index 4439627..d76285e 100644
     
    2424<title><?php wp_title( '|', true, 'right' ); ?></title>
    2525<link rel="profile" href="http://gmpg.org/xfn/11" />
    2626<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    27 <?php // Loads HTML5 JavaScript file to add support for HTML5 elements in older IE versions. ?>
    28 <!--[if lt IE 9]>
    29 <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
    30 <![endif]-->
    3127<?php wp_head(); ?>
    3228</head>
    3329