diff --git a/wp-includes/query.php b/wp-includes/query.php index 68093b69b5..e976cdf096 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -2177,7 +2177,7 @@ class WP_Query { if ( !empty($q['s']) ) { // added slashes screw with quote grouping when done early, so done later $q['s'] = stripslashes($q['s']); - if ( empty( $_GET['s'] ) && is_main_query() ) + if ( empty( $_GET['s'] ) && $this->is_main_query() ) $q['s'] = urldecode($q['s']); if ( !empty($q['sentence']) ) { $q['search_terms'] = array($q['s']);