Changeset 28612
- Timestamp:
- 05/29/2014 05:47:35 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/query.php
r28605 r28612 1511 1511 $this->is_single = false; 1512 1512 } else { 1513 1513 1514 // Look for archive queries. Dates, categories, authors, search, post type archives. 1514 1515 if ( !empty($qv['s']) ) { 1515 if ( ! empty( $qv['s'] ) || ( $this->is_main_query() && array_key_exists( 's', $this->query ) ) ) 1516 1516 $this->is_search = true; 1517 }1518 1517 1519 1518 if ( '' !== $qv['second'] ) { … … 2262 2261 } 2263 2262 } 2263 2264 if ( $this->is_search ) { 2265 $search = 'AND 0'; 2266 } 2267 2264 2268 if ( $this->is_feed ) { 2265 2269 // This overrides posts_per_page. … … 2877 2881 2878 2882 // Comments feeds 2879 if ( $this->is_comment_feed && ( $this->is_archive || $this->is_search|| !$this->is_singular ) ) {2883 if ( $this->is_comment_feed && ( $this->is_archive || ( $this->is_search && ! empty( $q['s'] ) ) || !$this->is_singular ) ) { 2880 2884 if ( $this->is_archive || $this->is_search ) { 2881 2885 $cjoin = "JOIN $wpdb->posts ON ($wpdb->comments.comment_post_ID = $wpdb->posts.ID) $join ";
Note: See TracChangeset
for help on using the changeset viewer.