Make WordPress Core

Opened 5 years ago

Closed 4 years ago

Last modified 4 years ago

#46090 closed defect (bug) (wontfix)

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

Reported by: peterwilsoncc's profile peterwilsoncc Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Administration Keywords:
Focuses: Cc:


_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 (4)

#1 @desrosj
5 years ago

  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to Future Release

#2 @valentinbora
4 years ago

  • Keywords dev-feedback 2nd-opinion added

Related: #49126

#3 @peterwilsoncc
4 years ago

  • Keywords needs-patch dev-feedback 2nd-opinion removed
  • Milestone Future Release deleted
  • Resolution set to wontfix
  • Status changed from new to closed

Closing: WP Admin no longer supports IE 10 or below. IE 11 runs in edge mode by default, so the header is no longer needed.

This ticket was mentioned in Slack in #core-css by peterwilsoncc. View the logs.

4 years ago

Note: See TracTickets for help on using tickets.