Ticket #17316: class-wp.php.diff
File class-wp.php.diff, 688 bytes (added by , 12 years ago) |
---|
-
class-wp.php
470 470 471 471 if ( !is_admin() && ( 0 == count( $wp_query->posts ) ) && !is_404() && !is_robots() && !is_search() && !is_home() ) { 472 472 // Don't 404 for these queries if they matched an object. 473 if ( ( is_tag() || is_category() || is_tax() || is_author() ) && $wp_query->get_queried_object() && !is_paged() ) {473 if ( ( is_tag() || is_category() || is_tax() || is_author() ) || is_post_type_archive() && $wp_query->get_queried_object() && !is_paged() ) { 474 474 if ( !is_404() ) 475 475 status_header( 200 ); 476 476 return;