Make WordPress Core

Changeset 29257


Ignore:
Timestamp:
07/21/2014 03:37:14 PM (11 years ago)
Author:
SergeyBiryukov
Message:

Remove a redundant condition for comment feeds from WP_Query::get_posts().

props engelen.
fixes #28401.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/query.php

    r29141 r29257  
    30583058
    30593059        // Comments feeds
    3060         if ( $this->is_comment_feed && ( $this->is_archive || ( $this->is_search && ! empty( $q['s'] ) ) || !$this->is_singular ) ) {
     3060        if ( $this->is_comment_feed && ! $this->is_singular ) {
    30613061            if ( $this->is_archive || $this->is_search ) {
    30623062                $cjoin = "JOIN $wpdb->posts ON ($wpdb->comments.comment_post_ID = $wpdb->posts.ID) $join ";
Note: See TracChangeset for help on using the changeset viewer.