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.
This commit is contained in:
lainga9
2014-03-25 16:14:56 +00:00
parent f411b8d0c8
commit 98818ea7c7

View File

@@ -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'] = ' ';
}