Send proper header to avoid charset mismatch - http://mosquito.wordpress.org/view.php?id=857

git-svn-id: http://svn.automattic.com/wordpress/trunk@2320 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt 2005-02-14 04:29:53 +00:00
parent df3a83a5fb
commit 41f2e62b24
1 changed files with 2 additions and 1 deletions

View File

@ -109,9 +109,10 @@ for ($i=0; $i<count($wpvarstoreset); $i += 1) {
// Sending HTTP headers
if ( !empty($error) && '404' == $error ) {
header('HTTP/1.x 404 Not Found');
@header('HTTP/1.x 404 Not Found');
} else if ( empty($feed) ) {
@header('X-Pingback: '. get_bloginfo('pingback_url'));
@header('Content-type: text/html; charset=' . get_option('blog_charset'));
} else {
// We're showing a feed, so WP is indeed the only thing that last changed
if ( $withcomments )