Add X-UA-Compatible meta tag in the admin, locking the compatibility mode in IE to the highest supported document mode. Fixes #25575.

git-svn-id: https://develop.svn.wordpress.org/trunk@26029 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2013-11-06 23:48:02 +00:00
parent fc8d09e2a6
commit 859516cd19
1 changed files with 10 additions and 0 deletions

View File

@ -1685,6 +1685,8 @@ function get_submit_button( $text = null, $type = 'primary large', $name = 'subm
}
function _wp_admin_html_begin() {
global $is_IE;
$admin_html_class = ( is_admin_bar_showing() ) ? 'wp-toolbar' : '';
?>
<!DOCTYPE html>
@ -1695,6 +1697,14 @@ function _wp_admin_html_begin() {
<html xmlns="http://www.w3.org/1999/xhtml" class="<?php echo $admin_html_class; ?>" <?php do_action('admin_xml_ns'); ?> <?php language_attributes(); ?>>
<!--<![endif]-->
<head>
<?php
if ( $is_IE ) {
// Lock the IE compatibility mode to the highest supported document mode by the browser.
?>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<?php
}
?>
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
<?php
}