diff --git src/wp-content/themes/twentytwelve/functions.php src/wp-content/themes/twentytwelve/functions.php
index 0b6e180..1d58e65 100644
|
|
function twentytwelve_scripts_styles() { |
133 | 133 | global $wp_styles; |
134 | 134 | |
135 | 135 | /* |
| 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 | /* |
136 | 142 | * Adds JavaScript to pages with the comment form to support |
137 | 143 | * sites with threaded comments (when in use). |
138 | 144 | */ |
… |
… |
function twentytwelve_scripts_styles() { |
151 | 157 | |
152 | 158 | // Loads the Internet Explorer specific stylesheet. |
153 | 159 | 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' ); |
155 | 161 | } |
156 | 162 | add_action( 'wp_enqueue_scripts', 'twentytwelve_scripts_styles' ); |
157 | 163 | |
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 | |