Make WordPress Core

Changeset 26089


Ignore:
Timestamp:
11/11/2013 06:01:40 PM (12 years ago)
Author:
azaozz
Message:

Fix the X-UA-Compatible header for IE8, fixes #25575

File:
1 edited

Legend:

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

    r26029 r26089  
    16891689
    16901690    $admin_html_class = ( is_admin_bar_showing() ) ? 'wp-toolbar' : '';
     1691
     1692    if ( $is_IE )
     1693        @header('X-UA-Compatible: IE=edge');
     1694
    16911695?>
    16921696<!DOCTYPE html>
     
    16981702<!--<![endif]-->
    16991703<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 ?>
    17081704<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
    17091705<?php
Note: See TracChangeset for help on using the changeset viewer.