WordPress.org

Make WordPress Core

Ticket #25863: ticket-25863-xmlns-removal.patch

File ticket-25863-xmlns-removal.patch, 7.7 KB (added by bpetty, 6 years ago)
  • src/wp-admin/install.php

    diff --git src/wp-admin/install.php src/wp-admin/install.php
    index 0b6ac2e..49c452f 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() { 
    5454        header( 'Content-Type: text/html; charset=utf-8' );
    5555?>
    5656<!DOCTYPE html>
    57 <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
     57<html <?php language_attributes(); ?>>
    5858<head>
    5959        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    6060        <title><?php _e( 'WordPress &rsaquo; Installation' ); ?></title>
  • src/wp-admin/maint/repair.php

    diff --git src/wp-admin/maint/repair.php src/wp-admin/maint/repair.php
    index 98bf579..0b8d4e2 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 http-equiv="Content-Type" content="text/html; charset=utf-8" />
    1818        <title><?php _e( 'WordPress &rsaquo; Database Repair' ); ?></title>
  • src/wp-admin/network/sites.php

    diff --git src/wp-admin/network/sites.php src/wp-admin/network/sites.php
    index 37f6440..d13beea 100644
    if ( isset( $_GET['action'] ) ) { 
    6363                        wp_die( __( 'You are not allowed to change the current site.' ) );
    6464                ?>
    6565                <!DOCTYPE html>
    66                 <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
     66                <html <?php language_attributes(); ?>>
    6767                        <head>
    6868                                <title><?php _e( 'WordPress &rsaquo; Confirm your action' ); ?></title>
    6969
  • src/wp-admin/setup-config.php

    diff --git src/wp-admin/setup-config.php src/wp-admin/setup-config.php
    index d8ae356..45298eb 100644
    function setup_config_display_header() { 
    9797        header( 'Content-Type: text/html; charset=utf-8' );
    9898?>
    9999<!DOCTYPE html>
    100 <html xmlns="http://www.w3.org/1999/xhtml"<?php if ( is_rtl() ) echo ' dir="rtl"'; ?>>
     100<html<?php if ( is_rtl() ) echo ' dir="rtl"'; ?>>
    101101<head>
    102102<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    103103<title><?php _e( 'WordPress &rsaquo; Setup Configuration File' ); ?></title>
  • src/wp-admin/upgrade.php

    diff --git src/wp-admin/upgrade.php src/wp-admin/upgrade.php
    index 24fe976..bf598a4 100644
    else 
    4848@header( 'Content-Type: ' . get_option( 'html_type' ) . '; charset=' . get_option( 'blog_charset' ) );
    4949?>
    5050<!DOCTYPE html>
    51 <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
     51<html <?php language_attributes(); ?>>
    5252<head>
    5353        <meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php echo get_option( 'blog_charset' ); ?>" />
    5454        <title><?php _e( 'WordPress &rsaquo; Update' ); ?></title>
  • src/wp-includes/functions.php

    diff --git src/wp-includes/functions.php src/wp-includes/functions.php
    index 7d931bc..ec57d2e 100644
    function _default_wp_die_handler( $message, $title = '', $args = array() ) { 
    21732173<!DOCTYPE html>
    21742174<!-- Ticket #11289, IE bug fix: always pad the error page with enough characters such that it is greater than 512 bytes, even after gzip compression abcdefghijklmnopqrstuvwxyz1234567890aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz11223344556677889900abacbcbdcdcededfefegfgfhghgihihjijikjkjlklkmlmlnmnmononpopoqpqprqrqsrsrtstsubcbcdcdedefefgfabcadefbghicjkldmnoepqrfstugvwxhyz1i234j567k890laabmbccnddeoeffpgghqhiirjjksklltmmnunoovppqwqrrxsstytuuzvvw0wxx1yyz2z113223434455666777889890091abc2def3ghi4jkl5mno6pqr7stu8vwx9yz11aab2bcc3dd4ee5ff6gg7hh8ii9j0jk1kl2lmm3nnoo4p5pq6qrr7ss8tt9uuvv0wwx1x2yyzz13aba4cbcb5dcdc6dedfef8egf9gfh0ghg1ihi2hji3jik4jkj5lkl6kml7mln8mnm9ono
    21752175-->
    2176 <html xmlns="http://www.w3.org/1999/xhtml" <?php if ( function_exists( 'language_attributes' ) && function_exists( 'is_rtl' ) ) language_attributes(); else echo "dir='$text_direction'"; ?>>
     2176<html <?php if ( function_exists( 'language_attributes' ) && function_exists( 'is_rtl' ) ) language_attributes(); else echo "dir='$text_direction'"; ?>>
    21772177<head>
    21782178        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    21792179        <title><?php echo $title ?></title>
    function dead_db() { 
    28182818        wp_load_translations_early();
    28192819?>
    28202820<!DOCTYPE html>
    2821 <html xmlns="http://www.w3.org/1999/xhtml"<?php if ( is_rtl() ) echo ' dir="rtl"'; ?>>
     2821<html<?php if ( is_rtl() ) echo ' dir="rtl"'; ?>>
    28222822<head>
    28232823<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    28242824        <title><?php _e( 'Database Error' ); ?></title>
  • src/wp-includes/js/tinymce/plugins/wpeditimage/editimage.html

    diff --git src/wp-includes/js/tinymce/plugins/wpeditimage/editimage.html src/wp-includes/js/tinymce/plugins/wpeditimage/editimage.html
    index a452653..d24d65d 100644
     
    11<!DOCTYPE html>
    2 <html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
     2<html lang="en-US">
    33<head>
    44<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    55<title></title>
  • src/wp-includes/js/tinymce/wp-mce-help.php

    diff --git src/wp-includes/js/tinymce/wp-mce-help.php src/wp-includes/js/tinymce/wp-mce-help.php
    index befcf94..6f687ce 100644
    require_once( dirname( dirname( dirname( dirname( __FILE__ ) ) ) ) . '/wp-load.p 
    1010header('Content-Type: text/html; charset=' . get_bloginfo('charset'));
    1111?>
    1212<!DOCTYPE html>
    13 <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
     13<html <?php language_attributes(); ?>>
    1414<head>
    1515<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
    1616<title><?php _e('Rich Editor Help'); ?></title>
  • src/wp-includes/load.php

    diff --git src/wp-includes/load.php src/wp-includes/load.php
    index e589f5f..d34c16d 100644
    function wp_maintenance() { 
    167167        header( 'Retry-After: 600' );
    168168?>
    169169        <!DOCTYPE html>
    170         <html xmlns="http://www.w3.org/1999/xhtml"<?php if ( is_rtl() ) echo ' dir="rtl"'; ?>>
     170        <html<?php if ( is_rtl() ) echo ' dir="rtl"'; ?>>
    171171        <head>
    172172        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    173173                <title><?php _e( 'Maintenance' ); ?></title>
  • src/wp-includes/ms-deprecated.php

    diff --git src/wp-includes/ms-deprecated.php src/wp-includes/ms-deprecated.php
    index 30026a8..6d0e8d0 100644
    function graceful_fail( $message ) { 
    8686        $message = apply_filters( 'graceful_fail', $message );
    8787        $message_template = apply_filters( 'graceful_fail_template',
    8888'<!DOCTYPE html>
    89 <html xmlns="http://www.w3.org/1999/xhtml"><head profile="http://gmpg.org/xfn/11">
     89<html><head profile="http://gmpg.org/xfn/11">
    9090<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    9191<title>Error!</title>
    9292<style type="text/css">
  • src/wp-login.php

    diff --git src/wp-login.php src/wp-login.php
    index 7d48993..dd008a1 100644
    function login_header($title = 'Log In', $message = '', $wp_error = '') { 
    5757                add_action( 'login_head', 'wp_shake_js', 12 );
    5858
    5959        ?><!DOCTYPE html>
    60         <html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
     60        <html <?php language_attributes(); ?>>
    6161        <head>
    6262        <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    6363        <title><?php bloginfo('name'); ?> &rsaquo; <?php echo $title; ?></title>