Make WordPress Core

Opened 12 months ago

Last modified 12 months ago

#46090 new defect (bug)

Always include the X-UA-Compatible header in `_wp_admin_html_begin()`.

Reported by: peterwilsoncc Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version:
Component: Administration Keywords: needs-patch
Focuses: Cc:
PR Number:


_wp_admin_html_begin() uses the following code to avoid compatibility mode in Internet Explorer.

global $is_IE;
if ( $is_IE ) {
        @header( 'X-UA-Compatible: IE=edge' );

As the tag is benign in most cases, the condition can be removed and the HTTP header always included.

In wp-includes/vars.php the compatibility header is set to use chrome frame in the admin (and on the front end if a developer desires).

In the dashboard, these can combined to become X-UA-Compatible: IE=edge, chrome=1.

Once IE11 use drops further, they can be deleted but until then it's a nice trip down memory lane.

Change History (1)

#1 @desrosj
12 months ago

  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to Future Release
Note: See TracTickets for help on using tickets.