WordPress.org

Make WordPress Core

Ticket #9977: xml-declaration.diff

File xml-declaration.diff, 10.7 KB (added by redgecko, 9 years ago)
  • wp-login.php

     
    4444        if ( empty($wp_error) )
    4545                $wp_error = new WP_Error();
    4646        ?>
     47<?xml version="1.0" encoding="<?php bloginfo('charset'); ?>"?>
    4748<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    4849<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    4950<head>
    50         <title><?php bloginfo('name'); ?> &rsaquo; <?php echo $title; ?></title>
    5151        <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
     52        <title><?php bloginfo('name'); ?> &rsaquo; <?php echo $title; ?></title>
    5253        <?php
    5354        wp_admin_css( 'login', true );
    5455        wp_admin_css( 'colors-fresh', true );
  • wp-includes/js/tinymce/wp-mce-help.php

     
    99require_once('../../../wp-load.php');
    1010header('Content-Type: text/html; charset=' . get_bloginfo('charset'));
    1111?>
     12<?xml version="1.0" encoding="<?php echo get_option('blog_charset'); ?>"?>
    1213<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    1314<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    1415<head>
  • wp-includes/functions.php

     
    22762276        }
    22772277
    22782278?>
     2279<?xml version="1.0" encoding="UTF-8"?>
    22792280<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    22802281<html xmlns="http://www.w3.org/1999/xhtml" <?php if ( function_exists( 'language_attributes' ) ) language_attributes(); ?>>
    22812282<head>
  • wp-content/themes/classic/comments-popup.php

     
    33 * @package WordPress
    44 * @subpackage Classic_Theme
    55 */
    6 ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     6?>
     7<?xml version="1.0" encoding="<?php echo get_option('blog_charset'); ?>"?>
     8<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    79<html xmlns="http://www.w3.org/1999/xhtml">
    810<head>
     11        <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
    912     <title><?php echo get_option('blogname'); ?> - <?php echo sprintf(__("Comments on %s"), the_title('','',false)); ?></title>
    1013
    11         <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
    1214        <style type="text/css" media="screen">
    1315                @import url( <?php bloginfo('stylesheet_url'); ?> );
    1416                body { margin: 3px; }
  • wp-content/themes/classic/header.php

     
    44 * @subpackage Classic_Theme
    55 */
    66?>
     7<?xml version="1.0" encoding="<?php bloginfo('charset'); ?>"?>
    78<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    89<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    910
  • wp-content/themes/default/comments-popup.php

     
    33 * @package WordPress
    44 * @subpackage Default_Theme
    55 */
    6 ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     6?>
     7<?xml version="1.0" encoding="<?php echo get_option('blog_charset'); ?>"?>
     8<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    79<html xmlns="http://www.w3.org/1999/xhtml">
    810<head>
    9      <title><?php echo get_option('blogname'); ?> - Comments on <?php the_title(); ?></title>
    10 
    1111        <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
     12        <title><?php echo get_option('blogname'); ?> - Comments on <?php the_title(); ?></title>
     13
    1214        <style type="text/css" media="screen">
    1315                @import url( <?php bloginfo('stylesheet_url'); ?> );
    1416                body { margin: 3px; }
  • wp-content/themes/default/header.php

     
    44 * @subpackage Default_Theme
    55 */
    66?>
     7<?xml version="1.0" encoding="<?php bloginfo('charset'); ?>"?>
    78<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    89<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    910
  • wp-settings.php

     
    124124                header( "$protocol 503 Service Unavailable", true, 503 );
    125125                header( 'Content-Type: text/html; charset=utf-8' );
    126126?>
     127<?xml version="1.0" encoding="UTF-8"?>
    127128<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    128129<html xmlns="http://www.w3.org/1999/xhtml">
    129130<head>
  • wp-admin/includes/template.php

     
    32363236 *
    32373237 */
    32383238function iframe_header( $title = '', $limit_styles = false) {
    3239 ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     3239?>
     3240<?xml version="1.0" encoding="<?php echo get_option('blog_charset'); ?>"?>
     3241<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    32403242<html xmlns="http://www.w3.org/1999/xhtml" <?php do_action('admin_xml_ns'); ?> <?php language_attributes(); ?>>
    32413243<head>
    32423244<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" />
  • wp-admin/includes/media.php

     
    292292 */
    293293function wp_iframe($content_func /* ... */) {
    294294?>
     295<?xml version="1.0" encoding="<?php echo get_option('blog_charset'); ?>"?>
    295296<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    296297<html xmlns="http://www.w3.org/1999/xhtml" <?php do_action('admin_xml_ns'); ?> <?php language_attributes(); ?>>
    297298<head>
  • wp-admin/admin-header.php

     
    1313$title = wp_specialchars( strip_tags( $title ) );
    1414wp_user_settings();
    1515?>
     16<?xml version="1.0" encoding="<?php echo get_option('blog_charset'); ?>"?>
    1617<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    1718<html xmlns="http://www.w3.org/1999/xhtml" <?php do_action('admin_xml_ns'); ?> <?php language_attributes(); ?>>
    1819<head>
  • wp-admin/upgrade.php

     
    3535
    3636@header('Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
    3737?>
     38<?xml version="1.0" encoding="<?php echo get_option('blog_charset'); ?>"?>
    3839<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    3940<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    4041<head>
  • wp-admin/press-this.php

     
    325325}
    326326
    327327?>
     328<?xml version="1.0" encoding="<?php echo get_option('blog_charset'); ?>"?>
    328329<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    329330<html xmlns="http://www.w3.org/1999/xhtml" <?php do_action('admin_xml_ns'); ?> <?php language_attributes(); ?>>
    330331<head>
  • wp-admin/setup-config.php

     
    6262function display_header() {
    6363        header( 'Content-Type: text/html; charset=utf-8' );
    6464?>
     65<?xml version="1.0" encoding="UTF-8"?>
    6566<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    6667<html xmlns="http://www.w3.org/1999/xhtml">
    6768<head>
  • wp-admin/install.php

     
    3535function display_header() {
    3636header( 'Content-Type: text/html; charset=utf-8' );
    3737?>
     38<?xml version="1.0" encoding="UTF-8"?>
    3839<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    3940<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>
    4041<head>
  • wp-admin/sidebar.php

     
    2020
    2121$post = get_default_post_to_edit();
    2222
    23 ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
     23?>
     24<?xml version="1.0" encoding="<?php bloginfo('blog_charset'); ?>"?>
     25<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    2426<html xmlns="http://www.w3.org/1999/xhtml">
    2527<head>
    2628<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('blog_charset'); ?>" />