Make WordPress Core

Ticket #1222: content-type-headers2.diff

File content-type-headers2.diff, 5.7 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']) )
  • 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: '.get_bloginfo('html_type').'; charset='.get_bloginfo('charset'));       
    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

     
    2121        $action = 'disabled';
    2222}
    2323
     24header('Content-Type: '.get_bloginfo('html_type').'; charset='.get_bloginfo('charset'));
     25
    2426switch($action) {
    2527
    2628case 'register':
  • wp-admin/import-textpattern.php

     
    1313
    1414$step = $_GET['step'];
    1515if (!$step) $step = 0;
     16header('Content-Type: '.get_bloginfo('html_type').'; charset='.get_bloginfo('charset'));
    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: '.get_bloginfo('html_type').'; charset='.get_bloginfo('charset'));
    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: '.get_bloginfo('html_type').'; charset='.get_bloginfo('charset'));
    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: '.get_bloginfo('html_type').'; charset='.get_bloginfo('charset'));
    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: '.get_bloginfo('html_type').'; charset='.get_bloginfo('charset'));
    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: '.get_bloginfo('html_type').'; charset='.get_bloginfo('charset'));
    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: '.get_bloginfo('html_type').'; charset='.get_bloginfo('charset'));
    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">