WordPress.org

Make WordPress Core

Ticket #49126: 49126.2.diff

File 49126.2.diff, 6.0 KB (added by diddledan, 9 months ago)

remove all instances of [if IE 8] fallbacks and xmlns attributes on all <html> tags

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

    diff --git src/wp-admin/includes/template.php src/wp-admin/includes/template.php
    index e1140325e9..be424c6bfe 100644
    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
  • src/wp-admin/install.php

    diff --git src/wp-admin/install.php src/wp-admin/install.php
    index 68408c9c41..e8eb7c363e 100644
     
    1010if ( false ) {
    1111        ?>
    1212<!DOCTYPE html>
    13 <html xmlns="http://www.w3.org/1999/xhtml">
     13<html>
    1414<head>
    1515        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    1616        <title>Error: PHP is not running</title>
    function display_header( $body_classes = '' ) { 
    6565        }
    6666        ?>
    6767<!DOCTYPE html>
    68 <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
     68<html <?php language_attributes(); ?>>
    6969<head>
    7070        <meta name="viewport" content="width=device-width" />
    7171        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  • src/wp-admin/maint/repair.php

    diff --git src/wp-admin/maint/repair.php src/wp-admin/maint/repair.php
    index 070a91b118..da7aa87b72 100644
    require_once( dirname( dirname( dirname( __FILE__ ) ) ) . '/wp-load.php' ); 
    1212header( 'Content-Type: text/html; charset=utf-8' );
    1313?>
    1414<!DOCTYPE html>
    15 <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
     15<html <?php language_attributes(); ?>>
    1616<head>
    1717        <meta name="viewport" content="width=device-width" />
    1818        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  • src/wp-admin/setup-config.php

    diff --git src/wp-admin/setup-config.php src/wp-admin/setup-config.php
    index f9be50f05a..2b039944c2 100644
    function setup_config_display_header( $body_classes = array() ) { 
    104104        header( 'Content-Type: text/html; charset=utf-8' );
    105105        ?>
    106106<!DOCTYPE html>
    107 <html xmlns="http://www.w3.org/1999/xhtml"<?php echo $dir_attr; ?>>
     107<html <?php echo $dir_attr; ?>>
    108108<head>
    109109        <meta name="viewport" content="width=device-width" />
    110110        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  • src/wp-admin/upgrade.php

    diff --git src/wp-admin/upgrade.php src/wp-admin/upgrade.php
    index 67555f4fe9..1c307d3ec6 100644
    if ( file_exists( WP_CONTENT_DIR . '/db.php' ) && empty( $wpdb->is_mysql ) ) { 
    5656header( 'Content-Type: ' . get_option( 'html_type' ) . '; charset=' . get_option( 'blog_charset' ) );
    5757?>
    5858<!DOCTYPE html>
    59 <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
     59<html <?php language_attributes(); ?>>
    6060<head>
    6161        <meta name="viewport" content="width=device-width" />
    6262        <meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php echo get_option( 'blog_charset' ); ?>" />
  • src/wp-includes/functions.php

    diff --git src/wp-includes/functions.php src/wp-includes/functions.php
    index 12e4d0efe3..7e42146e2c 100644
    function _default_wp_die_handler( $message, $title = '', $args = array() ) { 
    33853385                }
    33863386                ?>
    33873387<!DOCTYPE html>
    3388 <html xmlns="http://www.w3.org/1999/xhtml" <?php echo $dir_attr; ?>>
     3388<html <?php echo $dir_attr; ?>>
    33893389<head>
    33903390        <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $parsed_args['charset']; ?>" />
    33913391        <meta name="viewport" content="width=device-width">
  • src/wp-includes/ms-deprecated.php

    diff --git src/wp-includes/ms-deprecated.php src/wp-includes/ms-deprecated.php
    index 131c6da0cd..fa904f13b5 100644
    function graceful_fail( $message ) { 
    9191        $message = apply_filters( 'graceful_fail', $message );
    9292        $message_template = apply_filters( 'graceful_fail_template',
    9393'<!DOCTYPE html>
    94 <html xmlns="http://www.w3.org/1999/xhtml"><head>
     94<html><head>
    9595<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    9696<title>Error!</title>
    9797<style type="text/css">
  • src/wp-includes/theme-compat/header.php

    diff --git src/wp-includes/theme-compat/header.php src/wp-includes/theme-compat/header.php
    index 461a85aec8..132245f949 100644
    _deprecated_file( 
    1616);
    1717?>
    1818<!DOCTYPE html>
    19 <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
     19<html <?php language_attributes(); ?>>
    2020<head>
    2121<link rel="profile" href="http://gmpg.org/xfn/11" />
    2222<meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php bloginfo( 'charset' ); ?>" />
  • src/wp-login.php

    diff --git src/wp-login.php src/wp-login.php
    index f9f25fa3eb..d354ff7ba0 100644
    function login_header( $title = 'Log In', $message = '', $wp_error = null ) { 
    8686        $login_title = apply_filters( 'login_title', $login_title, $title );
    8787
    8888        ?><!DOCTYPE html>
    89         <!--[if IE 8]>
    90                 <html xmlns="http://www.w3.org/1999/xhtml" class="ie8" <?php language_attributes(); ?>>
    91         <![endif]-->
    92         <!--[if !(IE 8) ]><!-->
    93                 <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    94         <!--<![endif]-->
     89        <html <?php language_attributes(); ?>>
    9590        <head>
    9691        <meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php bloginfo( 'charset' ); ?>" />
    9792        <title><?php echo $login_title; ?></title>