Merge pull request #21581 from codemascot/161018-131105-class-wc-ajax.php

Removed unnecessary variable.
This commit is contained in:
Mike Jolley 2019-01-07 12:43:40 +00:00 committed by GitHub
commit 05de936932
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -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();