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

git-svn-id: https://develop.svn.wordpress.org/trunk@2320 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2005-02-14 04:29:53 +00:00
parent b2041fc4d0
commit b6c203b47d
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 )