Created
January 27, 2015 20:23
-
-
Save jester1979/97aba056bbcbf765360a to your computer and use it in GitHub Desktop.
IE compat header
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
add_filter( 'wp_headers', 'add_ie_compatibility_header' ); | |
/** | |
* Disable IE compatibilty view modus. | |
* | |
* Not 100% guaranteed to have affect. | |
* | |
* @since 1.0.0 | |
*/ | |
function add_ie_compatibility_header( $headers ) { | |
$headers['X-UA-Compatible'] = 'IE=edge'; | |
return $headers; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment