diff --git a/includes/class-wc-ajax.php b/includes/class-wc-ajax.php index 66ae4eb8ae5..3e40e897343 100644 --- a/includes/class-wc-ajax.php +++ b/includes/class-wc-ajax.php @@ -1429,9 +1429,8 @@ class WC_AJAX { wp_die( -1 ); } - $term = wc_clean( wp_unslash( $_GET['term'] ) ); - $exclude = array(); - $limit = ''; + $term = wc_clean( wp_unslash( $_GET['term'] ) ); + $limit = 0; if ( empty( $term ) ) { wp_die();