Created
June 10, 2013 21:49
-
-
Save spigists/5752697 to your computer and use it in GitHub Desktop.
Use Google's version of HTML5 shim but only for old versions of IE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Use Google's version of HTML5 shim but only for old versions of IE | |
*/ | |
function iehtml5_shim () { | |
global $is_IE; | |
if ($is_IE) | |
echo '<!--[if lt IE 9]><script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->'; | |
} | |
add_action('wp_head', 'iehtml5_shim'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment