Don't kill an empty search query.

see #11330.

git-svn-id: https://develop.svn.wordpress.org/trunk@28804 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2014-06-23 13:33:39 +00:00
parent f7d7ecd0a6
commit 21cf4d1ab4
1 changed files with 0 additions and 2 deletions

View File

@ -2472,8 +2472,6 @@ class WP_Query {
// If a search pattern is specified, load the posts that match. // If a search pattern is specified, load the posts that match.
if ( ! empty( $q['s'] ) ) { if ( ! empty( $q['s'] ) ) {
$search = $this->parse_search( $q ); $search = $this->parse_search( $q );
} elseif ( ! $this->is_admin && $this->is_search ) {
$search = ' AND 0';
} }
/** /**