Fix select options custom callback validation

This commit is contained in:
Champ Camba
2016-12-09 12:23:52 +08:00
parent 696785fa51
commit bff52002b9
+4
View File
@@ -59,6 +59,10 @@
$arr_options = array();
if( ! current_user_can('manage_options') ){
wp_die( __( 'This is not possible for security reasons.','ultimatemember') );
}
$um_callback_func = $_POST['um_option_callback'];
if( empty( $um_callback_func ) ){
$arr_options['status'] = 'empty';