The variable should be 0 rather than empty string

This commit is contained in:
Khan M Rashedun-Naby 2018-10-16 14:23:43 +06:00
parent 7940694ce4
commit 439bd54ce5
1 changed files with 1 additions and 1 deletions

View File

@ -1430,7 +1430,7 @@ class WC_AJAX {
}
$term = wc_clean( wp_unslash( $_GET['term'] ) );
$limit = '';
$limit = 0;
if ( empty( $term ) ) {
wp_die();