Changeset 8761
- Timestamp:
- 08/28/2008 07:58:57 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/classes.php
r8646 r8761 295 295 // permalink request. 296 296 if ( (0 == count($wp_query->posts)) && !is_404() && !is_search() && ( $this->did_permalink || (!empty($_SERVER['QUERY_STRING']) && (false === strpos($_SERVER['REQUEST_URI'], '?'))) ) ) { 297 // Don't 404 for these queries if they matched an object. 298 if ( ( is_tag() || is_category() || is_author() ) && $wp_query->get_queried_object() ) { 299 if ( !is_404() ) 300 status_header( 200 ); 301 return; 302 } 297 303 $wp_query->set_404(); 298 304 status_header( 404 ); 299 305 nocache_headers(); 300 } elseif( is_404() != true) {306 } elseif ( !is_404() ) { 301 307 status_header( 200 ); 302 308 }
Note: See TracChangeset
for help on using the changeset viewer.