Skip to content

Commit 8216e50

Browse files
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. git-svn-id: https://develop.svn.wordpress.org/trunk@48126 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 5b684a6 commit 8216e50

9 files changed

Lines changed: 10 additions & 10 deletions

File tree

src/wp-admin/includes/template.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2450,7 +2450,7 @@ function _wp_admin_html_begin() {
24502450

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 */
24562456
do_action( 'admin_xml_ns' );

src/wp-admin/install.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
if ( 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>
@@ -65,7 +65,7 @@ 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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
header( '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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ function setup_config_display_header( $body_classes = array() ) {
106106
header( 'Content-Type: text/html; charset=utf-8' );
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" />
112112
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

src/wp-admin/upgrade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
header( '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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3426,7 +3426,7 @@ function _default_wp_die_handler( $message, $title = '', $args = array() ) {
34263426
}
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']; ?>" />
34323432
<meta name="viewport" content="width=device-width">

src/wp-includes/ms-deprecated.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ 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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ 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-
<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' ); ?>" />
9292
<title><?php echo $login_title; ?></title>

0 commit comments

Comments
 (0)