Make WordPress Core


Ignore:
Timestamp:
10/04/2006 03:54:10 AM (18 years ago)
Author:
markjaquith
Message:

nocache_headers from _ck_ and Nazgul. fixes #3027

File:
1 edited

Legend:

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

    r4204 r4291  
    172172        if ( !empty($this->query_vars['error']) && '404' == $this->query_vars['error'] ) {
    173173            status_header( 404 );
     174            if ( !is_user_logged_in() )
     175                nocache_headers();
    174176            @header('Content-type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
    175177        } else if ( empty($this->query_vars['feed']) ) {
     
    261263            $wp_query->set_404();
    262264            status_header( 404 );
     265            nocache_headers();
    263266        }   elseif( is_404() != true ) {
    264267            status_header( 200 );
Note: See TracChangeset for help on using the changeset viewer.