WordPress.org

Make WordPress Core

Ticket #49126: 49126.diff

File 49126.diff, 1.1 KB (added by diddledan, 3 months ago)

Remove IE8 conditional and xmlns="" attribute in _wp_admin_html_begin()

  • src/wp-admin/includes/template.php

    diff --git a/src/wp-admin/includes/template.php b/src/wp-admin/includes/template.php
    index e1140325e9..be424c6bfe 100644
    a b function _wp_admin_html_begin() { 
    24222422
    24232423        ?>
    24242424<!DOCTYPE html>
    2425 <!--[if IE 8]>
    2426 <html xmlns="http://www.w3.org/1999/xhtml" class="ie8 <?php echo $admin_html_class; ?>"
    2427         <?php
    2428         /**
    2429          * Fires inside the HTML tag in the admin header.
    2430          *
    2431          * @since 2.2.0
    2432          */
    2433         do_action( 'admin_xml_ns' );
    2434 
    2435         language_attributes();
    2436         ?>
    2437         >
    2438 <![endif]-->
    2439 <!--[if !(IE 8) ]><!-->
    2440 <html xmlns="http://www.w3.org/1999/xhtml" class="<?php echo $admin_html_class; ?>"
     2425<html class="<?php echo $admin_html_class; ?>"
    24412426        <?php
    24422427        /** This action is documented in wp-admin/includes/template.php */
    24432428        do_action( 'admin_xml_ns' );
    function _wp_admin_html_begin() { 
    24452430        language_attributes();
    24462431        ?>
    24472432        >
    2448 <!--<![endif]-->
    24492433<head>
    24502434<meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php echo get_option( 'blog_charset' ); ?>" />
    24512435        <?php