mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-16 21:23:39 +09:00
Fix role validation on registration process
This commit is contained in:
+1
-1
@@ -124,7 +124,7 @@ class UM_Form {
|
||||
$role = current( $_POST['role'] );
|
||||
}
|
||||
|
||||
if ( isset( $custom_field_roles ) && ! in_array( $role , $custom_field_roles ) ) {
|
||||
if ( isset( $custom_field_roles ) && is_array( $custom_field_roles ) && ! in_array( $role , $custom_field_roles ) ) {
|
||||
wp_die( __( 'This is not possible for security reasons.','ultimatemember') );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user