Ticket #18505: 18505.patch
File 18505.patch, 772 bytes (added by , 14 years ago) |
---|
-
wp-includes/class-wp.php
476 476 477 477 if ( !is_admin() && ( 0 == count( $wp_query->posts ) ) && !is_404() && !is_robots() && !is_search() && !is_home() ) { 478 478 // Don't 404 for these queries if they matched an object. 479 if ( ( is_tag() || is_category() || is_tax() || is_author() || is_post_type_archive() ) && $wp_query->get_queried_object() && !is_paged() ) {479 if ( ( ( is_tag() || is_category() || is_tax() || is_author() || is_post_type_archive() ) && $wp_query->get_queried_object() && !is_paged() ) || is_feed() ) { 480 480 if ( !is_404() ) 481 481 status_header( 200 ); 482 482 return;