Make WordPress Core

Ticket #20601: 20601.2.diff

File 20601.2.diff, 860 bytes (added by nacin, 12 years ago)
  • wp-includes/class-wp.php

     
    487487                // We will 404 for paged queries, as no posts were found.
    488488                if ( ! is_paged() ) {
    489489
     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
    490496                        // 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() ) {
    492498                                status_header( 200 );
    493499                                return;
    494500                        }