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() { |
130 | 130 | * @since Twenty Twelve 1.0 |
131 | 131 | */ |
132 | 132 | function 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' ); |
134 | 138 | |
135 | 139 | /* |
136 | 140 | * Adds JavaScript to pages with the comment form to support |
… |
… |
function twentytwelve_scripts_styles() { |
151 | 155 | |
152 | 156 | // Loads the Internet Explorer specific stylesheet. |
153 | 157 | 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' ); |
155 | 159 | } |
156 | 160 | add_action( 'wp_enqueue_scripts', 'twentytwelve_scripts_styles' ); |
157 | 161 | |
diff --git src/wp-content/themes/twentytwelve/header.php src/wp-content/themes/twentytwelve/header.php
index 4439627..d76285e 100644
|
|
|
24 | 24 | <title><?php wp_title( '|', true, 'right' ); ?></title> |
25 | 25 | <link rel="profile" href="http://gmpg.org/xfn/11" /> |
26 | 26 | <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]--> |
31 | 27 | <?php wp_head(); ?> |
32 | 28 | </head> |
33 | 29 | |