Add X-UA-Compatible meta tag in the admin, locking the compatibility mode in IE to the highest supported document mode. Fixes #25575.
Built from https://develop.svn.wordpress.org/trunk@26029 git-svn-id: http://core.svn.wordpress.org/trunk@25959 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
bf6f02320a
commit
0743625aed
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue