From 21cf4d1ab4109ac01d6cdd2049f781d2d7b7c6ff Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 23 Jun 2014 13:33:39 +0000 Subject: [PATCH] Don't kill an empty search query. see #11330. git-svn-id: https://develop.svn.wordpress.org/trunk@28804 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/query.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/wp-includes/query.php b/src/wp-includes/query.php index c2421cd369..e7e60d5233 100644 --- a/src/wp-includes/query.php +++ b/src/wp-includes/query.php @@ -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'; } /**