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:
parent
f7d7ecd0a6
commit
21cf4d1ab4
@ -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';
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user