From ab06b01eb8e0949787105fd37ba0ae11518d91b2 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 23 Jun 2014 13:34:15 +0000 Subject: [PATCH] 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 --- wp-includes/query.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/wp-includes/query.php b/wp-includes/query.php index c2421cd369..e7e60d5233 100644 --- a/wp-includes/query.php +++ b/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'; } /**