Are you sure the $_GET['q']
param is set?
Try:
$s_string = ( isset($_GET['q]) && !empty($_GET['q']) ) ? sanitize_text_field($_GET['q']) : '';
Are you sure the $_GET['q']
param is set?
Try:
$s_string = ( isset($_GET['q]) && !empty($_GET['q']) ) ? sanitize_text_field($_GET['q']) : '';