Send Content-type for 404s. Props Nazgul. fixes #2841
git-svn-id: http://svn.automattic.com/wordpress/trunk@3915 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b3c1dd21ca
commit
c8e7e66ee7
|
@ -234,6 +234,7 @@ class WP {
|
|||
nocache_headers();
|
||||
if ( !empty($this->query_vars['error']) && '404' == $this->query_vars['error'] ) {
|
||||
status_header( 404 );
|
||||
@header('Content-type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
|
||||
} else if ( empty($this->query_vars['feed']) ) {
|
||||
@header('Content-type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue