The variable should be 0 rather than empty string
This commit is contained in:
parent
7940694ce4
commit
439bd54ce5
|
@ -1430,7 +1430,7 @@ class WC_AJAX {
|
|||
}
|
||||
|
||||
$term = wc_clean( wp_unslash( $_GET['term'] ) );
|
||||
$limit = '';
|
||||
$limit = 0;
|
||||
|
||||
if ( empty( $term ) ) {
|
||||
wp_die();
|
||||
|
|
Loading…
Reference in New Issue