Make WordPress Core

Ticket #1222: content-type-headers.diff

File content-type-headers.diff, 6.5 KB (added by nbachiyski, 20 years ago)
  • wp-login.php

     
    88header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
    99header('Cache-Control: no-cache, must-revalidate');
    1010header('Pragma: no-cache');
     11header('Content-Type: '.get_bloginfo('html_type').'; charset='.get_bloginfo('charset'));
    1112
    1213if ( defined('RELOCATE') ) { // Move flag is set
    1314        if ( isset( $_SERVER['PATH_INFO'] ) && ($_SERVER['PATH_INFO'] != $_SERVER['PHP_SELF']) )
     
    6667<form name="lostpass" action="wp-login.php" method="post" id="lostpass">
    6768<p>
    6869<input type="hidden" name="action" value="retrievepassword" />
     703B
    6971<label><?php _e('Username:') ?><br />
    7072<input type="text" name="user_login" id="user_login" value="" size="20" tabindex="1" /></label></p>
    7173<p><label><?php _e('E-mail:') ?><br />
  • wp-includes/wp-db.php

     
    301301        function bail($message) { // Just wraps errors in a nice header and footer
    302302        if ( !$this->show_errors )
    303303                return false;
     304        header('Content-Type: text/html; charset=utf-8');
    304305        echo <<<HEAD
    305306        <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    306307        <html xmlns="http://www.w3.org/1999/xhtml">
     
    355356}
    356357
    357358$wpdb = new wpdb(DB_USER, DB_PASSWORD, DB_NAME, DB_HOST);
    358 ?>
    359  No newline at end of file
     359?>
  • wp-register.php

     
    8484        $message .= sprintf(__('E-mail: %s'), $user_email) . "\r\n";
    8585
    8686        @wp_mail(get_settings('admin_email'), sprintf(__('[%s] New User Registration'), get_settings('blogname')), $message);
    87 
     87       
     88        header('Content-Type: '.get_bloginfo('html_type').'; charset='.get_settings('blog_charset'));
    8889        ?>
    8990<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    9091<html xmlns="http://www.w3.org/1999/xhtml">
  • wp-commentsrss2.php

     
    66        require('wp-blog-header.php');
    77}
    88
    9 header('Content-type: text/xml;charset=' . get_settings('blog_charset'), true);
     9header('Content-type: text/xml; charset=' . get_settings('blog_charset'), true);
    1010
    1111echo '<?xml version="1.0" encoding="'.get_settings('blog_charset').'"?'.'>';
    1212?>
  • wp-admin/import-textpattern.php

     
    1313
    1414$step = $_GET['step'];
    1515if (!$step) $step = 0;
     16header('Content-Type: text/html; charset=utf-8');
    1617?>
    1718<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    1819<html xmlns="http://www.w3.org/1999/xhtml">
  • wp-admin/import-b2.php

     
    44require('upgrade-functions.php');
    55$step = $_GET['step'];
    66if (!$step) $step = 0;
     7header('Content-Type: text/html; charset=utf-8');
    78?>
    89<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    910<html xmlns="http://www.w3.org/1999/xhtml">
     
    243244?>
    244245
    245246</body>
    246 </html>
    247  No newline at end of file
     247</html>
  • wp-admin/import-livejournal.php

     
    1717
    1818$step = $_GET['step'];
    1919if (!$step) $step = 0;
     20header('Content-Type: text/html; charset=utf-8');
    2021?>
    2122<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    2223<html xmlns="http://www.w3.org/1999/xhtml">
     
    120121}
    121122?>
    122123</body>
    123 </html>
    124  No newline at end of file
     124</html>
  • wp-admin/setup-config.php

     
    1212
    1313$step = 0;
    1414if(isset($_GET['step'])) $step = $_GET['step'];
     15header('Content-Type: text/html; charset=utf-8');
    1516?>
    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">
  • wp-admin/install.php

     
    1212        $step = $_GET['step'];
    1313else
    1414        $step = 0;
     15header('Content-Type: text/html; charset=utf-8');
    1516?>
    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">
    1819<head>
    19         <title>WordPress &rsaquo; Installation</title>
     20        <title><?php _e('WordPress &rsaquo; Installation'); ?></title>
    2021        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    2122        <style media="screen" type="text/css">
    2223        <!--
  • wp-admin/import-rss.php

     
    2222
    2323$step = $_GET['step'];
    2424if (!$step) $step = 0;
     25header('Content-Type: text/html; charset=utf-8');
    2526?>
    2627<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    2728<html xmlns="http://www.w3.org/1999/xhtml">
     
    187188}
    188189?>
    189190</body>
    190 </html>
    191  No newline at end of file
     191</html>
  • wp-admin/import-mt.php

     
    88require ('upgrade-functions.php');
    99$step = $_GET['step'];
    1010if (!$step) $step = 0;
     11header('Content-Type: text/html; charset=utf-8');
    1112?>
    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">