Ticket #50873: 50873-search-query.diff
File 50873-search-query.diff, 538 bytes (added by , 4 years ago) |
---|
-
wp-includes/class-wp-query.php
2109 2109 } 2110 2110 } 2111 2111 2112 // If a search pattern is specified, load the posts that match.2113 if ( strlen( $q['s'] ) ) {2112 // If this is a search query, and a search pattern is specified, load the posts that match. 2113 if ( $this->is_search && strlen( $q['s'] ) ) { 2114 2114 $search = $this->parse_search( $q ); 2115 2115 } 2116 2116