From 2b6a8e40d3a9949ad4986a2d9f19736c3f45bf33 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sat, 24 Jun 2006 06:00:24 +0000 Subject: [PATCH] Send Content-type for 404s. Props Nazgul. fixes #2841 git-svn-id: https://develop.svn.wordpress.org/trunk@3915 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/classes.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/classes.php b/wp-includes/classes.php index a4ecc54c40..976a727608 100644 --- a/wp-includes/classes.php +++ b/wp-includes/classes.php @@ -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 {