Make WordPress Core

Changeset 26029


Ignore:
Timestamp:
11/06/2013 11:48:02 PM (11 years ago)
Author:
azaozz
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/template.php

    r25695 r26029  
    16861686
    16871687function _wp_admin_html_begin() {
     1688    global $is_IE;
     1689
    16881690    $admin_html_class = ( is_admin_bar_showing() ) ? 'wp-toolbar' : '';
    16891691?>
     
    16961698<!--<![endif]-->
    16971699<head>
     1700<?php
     1701    if ( $is_IE ) {
     1702        // Lock the IE compatibility mode to the highest supported document mode by the browser.
     1703        ?>
     1704        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
     1705        <?php
     1706    }
     1707?>
    16981708<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
    16991709<?php
Note: See TracChangeset for help on using the changeset viewer.