Ticket #3027: 3027.diff
File 3027.diff, 1007 bytes (added by , 19 years ago) |
---|
-
wp-includes/classes.php
171 171 nocache_headers(); 172 172 if ( !empty($this->query_vars['error']) && '404' == $this->query_vars['error'] ) { 173 173 status_header( 404 ); 174 if ( !is_user_logged_in() ) 175 nocache_headers(); 174 176 @header('Content-type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset')); 175 177 } else if ( empty($this->query_vars['feed']) ) { 176 178 @header('Content-type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset')); … … 260 262 if ( (0 == count($wp_query->posts)) && !is_404() && !is_search() && ( $this->did_permalink || (!empty($_SERVER['QUERY_STRING']) && (false === strpos($_SERVER['REQUEST_URI'], '?'))) ) ) { 261 263 $wp_query->set_404(); 262 264 status_header( 404 ); 265 nocache_headers(); 263 266 } elseif( is_404() != true ) { 264 267 status_header( 200 ); 265 268 }