Will this plugin work for wp-login.php?
]]>Maybe I’m missing something but I couldn’t find any directive in your plugin that tells it to load itself anywhere. I added the following function to html5shiv.php to do so:
function rw_html5shiv_conditional_queue() {
global $wp_version;
wp_deregister_script('html5shiv'); // deregister
wp_deregister_script('html5shiv-printshiv'); // deregister
wp_register_script('html5shiv-printshiv', plugins_url('/js/html5shiv-printshiv.min.js', __FILE__), false, '3.7.2');
if ( $wp_version >= 4.2 ) {
//supposedly will be available in 4.2
global $wp_scripts;
$wp_scripts->add_data( 'html5shiv-printshiv', 'conditional', 'lt IE 9' );
wp_enqueue_script('html5shiv-printshiv');
} else {
global $is_IE;
if( $is_IE ) {
wp_enqueue_script('html5shiv-printshiv');
}
}
}
if( !is_admin() ){
add_action('wp_enqueue_scripts', 'rw_html5shiv_conditional_queue', 99);
}
]]>
I activated the plugin. However, I am trying to find out if I have to enable it in the Dashboard settings. I see no link and there is no IE Explorer change so far. Still trying to figure this out.
]]>Why is this any better than using the latest build of jQuery? Maybe, I don’t get the point of this plugin but, I’m guessing that it is another JS help file…couldn’t be better than jQuery or could it?
]]>Thanks for this plugin! It didn’t solve all of my problems, but it made the site less messy in IE 7 and 8.
]]>