WordPress.org

Make WordPress Core

Changeset 4292


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

nocache_headers from _ck_ and Nazgul. fixes #3027

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/wp-includes/classes.php

    r4279 r4292  
    16221622        if ( !empty($this->query_vars['error']) && '404' == $this->query_vars['error'] ) {
    16231623            status_header( 404 );
     1624            if ( !is_user_logged_in() )
     1625                nocache_headers();
    16241626            @header('Content-type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset'));
    16251627        } else if ( empty($this->query_vars['feed']) ) {
     
    17111713            $wp_query->set_404();
    17121714            status_header( 404 );
     1715            nocache_headers();
    17131716        }   elseif( is_404() != true ) {
    17141717            status_header( 200 );
Note: See TracChangeset for help on using the changeset viewer.