Send Content-type for 404s. Props Nazgul. fixes #2841

git-svn-id: https://develop.svn.wordpress.org/trunk@3915 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2006-06-24 06:00:24 +00:00
parent 9131a92d44
commit 2b6a8e40d3
1 changed files with 1 additions and 0 deletions

View File

@ -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 {