Ticket #20601: 20601.2.diff
File 20601.2.diff, 860 bytes (added by , 12 years ago) |
---|
-
wp-includes/class-wp.php
487 487 // We will 404 for paged queries, as no posts were found. 488 488 if ( ! is_paged() ) { 489 489 490 // Don't 404 for authors without posts as long as they matched an author on this site. 491 if ( is_author() && is_user_member_of_blog( get_queried_object_id() ) ) { 492 status_header( 200 ); 493 return; 494 } 495 490 496 // Don't 404 for these queries if they matched an object. 491 if ( ( is_tag() || is_category() || is_tax() || is_ author() || is_post_type_archive() ) && $wp_query->get_queried_object() ) {497 if ( ( is_tag() || is_category() || is_tax() || is_post_type_archive() ) && get_queried_object() ) { 492 498 status_header( 200 ); 493 499 return; 494 500 }