Make WordPress Core

Ticket #30863: 30863.diff

File 30863.diff, 1.8 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..1d58e65 100644
    function twentytwelve_scripts_styles() { 
    133133        global $wp_styles;
    134134
    135135        /*
     136         * Loads HTML5 JavaScript file to add support for HTML5 elements in older IE versions.
     137         */
     138        wp_enqueue_script( 'twentytwelve-html5', get_template_directory_uri() . '/js/html5.js', array(), '3.7.0' );
     139        wp_script_add_data( 'twentytwelve-html5', 'conditional', 'lt IE 9' );
     140
     141        /*
    136142         * Adds JavaScript to pages with the comment form to support
    137143         * sites with threaded comments (when in use).
    138144         */
    function twentytwelve_scripts_styles() { 
    151157
    152158        // Loads the Internet Explorer specific stylesheet.
    153159        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' );
     160        wp_style_add_data( 'twentytwelve-ie', 'conditional', 'lt IE 9' );
    155161}
    156162add_action( 'wp_enqueue_scripts', 'twentytwelve_scripts_styles' );
    157163
  • 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