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:
parent
df3a83a5fb
commit
41f2e62b24
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue