mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-17 21:53:43 +09:00
Fix radio field in account page
This commit is contained in:
+8
-1
@@ -495,10 +495,17 @@ class UM_Fields {
|
||||
$key = 'role';
|
||||
}
|
||||
|
||||
if ( um_user( $key ) == $value ) {
|
||||
$um_user_value = um_user( $key );
|
||||
|
||||
if ( $um_user_value == $value ) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if ( is_array( $um_user_value ) && in_array( $value, $um_user_value ) ) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
} else {
|
||||
|
||||
if ( isset($data['default']) && $data['default'] == $value ) {
|
||||
|
||||
Reference in New Issue
Block a user