From 98818ea7c749cb484f67cedc38a23a99816cad4b Mon Sep 17 00:00:00 2001 From: lainga9 Date: Tue, 25 Mar 2014 16:14:56 +0000 Subject: [PATCH] Bug in roots_request_filter() This function affects the dashboard as well and breaks product filtering in WooCommerce 2.15 (not sure what other versions). Adding && !is_admin() should fix it. --- lib/cleanup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cleanup.php b/lib/cleanup.php index 5814131..d6bed38 100644 --- a/lib/cleanup.php +++ b/lib/cleanup.php @@ -242,7 +242,7 @@ if (current_theme_supports('nice-search')) { * @link http://core.trac.wordpress.org/ticket/11330 */ function roots_request_filter($query_vars) { - if (isset($_GET['s']) && empty($_GET['s'])) { + if (isset($_GET['s']) && empty($_GET['s']) && !is_admin()) { $query_vars['s'] = ' '; }