### Eclipse Workspace Patch 1.0
#P wordpress-trunk
|
|
|
461 | 461 | |
462 | 462 | if ( (0 == count($wp_query->posts)) && !is_404() && !is_search() && ( $this->did_permalink || (!empty($_SERVER['QUERY_STRING']) && (false === strpos($_SERVER['REQUEST_URI'], '?'))) ) ) { |
463 | 463 | // Don't 404 for these queries if they matched an object. |
464 | | if ( ( is_tag() || is_category() || is_author() ) && $wp_query->get_queried_object() ) { |
465 | | if ( !is_404() ) |
466 | | status_header( 200 ); |
467 | | return; |
| 464 | if ( !( ( is_tag() || is_category() || is_author() ) && $wp_query->get_queried_object() ) ) { |
| 465 | if ( apply_filters( 'handle_404', $handle_404 ) ) { |
| 466 | $wp_query->set_404(); |
| 467 | status_header( 404 ); |
| 468 | nocache_headers(); |
| 469 | } |
468 | 470 | } |
469 | | $wp_query->set_404(); |
470 | | status_header( 404 ); |
471 | | nocache_headers(); |
472 | | } elseif ( !is_404() ) { |
| 471 | } |
| 472 | |
| 473 | if ( !is_404() ) |
473 | 474 | status_header( 200 ); |
474 | | } |
475 | 475 | } |
476 | 476 | |
477 | 477 | /** |