Skip to content

Instantly share code, notes, and snippets.

@jester1979
Created January 27, 2015 20:23
Show Gist options
  • Save jester1979/97aba056bbcbf765360a to your computer and use it in GitHub Desktop.
Save jester1979/97aba056bbcbf765360a to your computer and use it in GitHub Desktop.
IE compat header
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