Don't kill an empty search query.

see #11330.
Built from https://develop.svn.wordpress.org/trunk@28804


git-svn-id: http://core.svn.wordpress.org/trunk@28613 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2014-06-23 13:34:15 +00:00
parent d2fc1773ae
commit ab06b01eb8

View File

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