mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
Fix select options custom callback validation
This commit is contained in:
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user