Make WordPress Core

Ticket #18505: 18505.patch

File 18505.patch, 772 bytes (added by SergeyBiryukov, 13 years ago)
  • wp-includes/class-wp.php

     
    476476
    477477                if ( !is_admin() && ( 0 == count( $wp_query->posts ) ) && !is_404() && !is_robots() && !is_search() && !is_home() ) {
    478478                        // 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() ) {
    480480                                if ( !is_404() )
    481481                                        status_header( 200 );
    482482                                return;