Make WordPress Core


Ignore:
Timestamp:
06/24/2006 06:00:24 AM (19 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/classes.php

    r3867 r3915  
    235235        if ( !empty($this->query_vars['error']) && '404' == $this->query_vars['error'] ) {
    236236            status_header( 404 );
     237            @header('Content-type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
    237238        } else if ( empty($this->query_vars['feed']) ) {
    238239            @header('Content-type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
Note: See TracChangeset for help on using the changeset viewer.