Make WordPress Core

Changeset 2548


Ignore:
Timestamp:
04/19/2005 03:35:48 AM (19 years ago)
Author:
matt
Message:

Be sure about encoding. Fixes http://mosquito.wordpress.org/view.php?id=1222

Location:
trunk
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/import-b2.php

    r1575 r2548  
    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">
  • trunk/wp-admin/import-blogger.php

    r2451 r2548  
    1616    }
    1717}
    18     require_once('../wp-config.php');
    19     require('upgrade-functions.php');
     18require_once('../wp-config.php');
     19require('upgrade-functions.php');
     20header( 'Content-Type: text/html; charset=utf-8' );
    2021switch ($action) {
    2122
  • trunk/wp-admin/import-greymatter.php

    r2451 r2548  
    2020}
    2121
     22header( 'Content-Type: text/html; charset=utf-8' );
    2223
    2324switch ($action) {
  • trunk/wp-admin/import-livejournal.php

    r1575 r2548  
    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">
  • trunk/wp-admin/import-mt.php

    r2383 r2548  
    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">
  • trunk/wp-admin/import-rss.php

    r2193 r2548  
    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">
  • trunk/wp-admin/import-textpattern.php

    r1590 r2548  
    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">
  • trunk/wp-admin/install.php

    r2532 r2548  
    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">
  • trunk/wp-admin/setup-config.php

    r2455 r2548  
    33
    44if (file_exists('../wp-config.php'))
    5     die("The file 'wp-config.php' already exists. If you need to reset any of the configuration items in this file, please delete it first.");
     5    die("The file 'wp-config.php' already exists. If you need to reset any of the configuration items in this file, please delete it first. You may try <a href='install.php'>installing now</a>.");
    66
    77if (!file_exists('../wp-config-sample.php'))
     
    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">
  • trunk/wp-includes/wp-db.php

    r2547 r2548  
    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">
  • trunk/wp-login.php

    r2477 r2548  
    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
  • trunk/wp-register.php

    r2477 r2548  
    1818}
    1919
    20 if (!get_settings('users_can_register')) {
     20if ( !get_settings('users_can_register') )
    2121    $action = 'disabled';
    22 }
     22
     23header( 'Content-Type: ' . get_bloginfo('html_type') . '; charset=' . get_bloginfo('charset') );
    2324
    2425switch($action) {
Note: See TracChangeset for help on using the changeset viewer.