Make WordPress Core

Changeset 48126


Ignore:
Timestamp:
06/22/2020 09:24:44 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Administration: Remove the xmlns attribute on the <html> tag.

The attribute is specific to XHTML and is not needed in HTML5.

Props audrasjb, diddledan, hommealone, joyously, mukesh27, valentinbora, peterwilsoncc, SergeyBiryukov.
Fixes #49126.

Location:
trunk/src
Files:
9 edited

Legend:

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

    r48109 r48126  
    24512451    ?>
    24522452<!DOCTYPE html>
    2453 <html xmlns="http://www.w3.org/1999/xhtml" class="<?php echo $admin_html_class; ?>"
     2453<html class="<?php echo $admin_html_class; ?>"
    24542454    <?php
    24552455    /** This action is documented in wp-admin/includes/template.php */
  • trunk/src/wp-admin/install.php

    r47859 r48126  
    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" />
     
    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" />
  • trunk/src/wp-admin/maint/repair.php

    r48111 r48126  
    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" />
  • trunk/src/wp-admin/setup-config.php

    r48115 r48126  
    107107    ?>
    108108<!DOCTYPE html>
    109 <html xmlns="http://www.w3.org/1999/xhtml"<?php echo $dir_attr; ?>>
     109<html<?php echo $dir_attr; ?>>
    110110<head>
    111111    <meta name="viewport" content="width=device-width" />
  • trunk/src/wp-admin/upgrade.php

    r47788 r48126  
    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" />
  • trunk/src/wp-includes/functions.php

    r48115 r48126  
    34273427        ?>
    34283428<!DOCTYPE html>
    3429 <html xmlns="http://www.w3.org/1999/xhtml" <?php echo $dir_attr; ?>>
     3429<html <?php echo $dir_attr; ?>>
    34303430<head>
    34313431    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $parsed_args['charset']; ?>" />
  • trunk/src/wp-includes/ms-deprecated.php

    r48115 r48126  
    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>
  • trunk/src/wp-includes/theme-compat/header.php

    r47122 r48126  
    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" />
  • trunk/src/wp-login.php

    r48115 r48126  
    8787
    8888    ?><!DOCTYPE html>
    89     <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
     89    <html <?php language_attributes(); ?>>
    9090    <head>
    9191    <meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php bloginfo( 'charset' ); ?>" />
Note: See TracChangeset for help on using the changeset viewer.