mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
@@ -116,7 +116,7 @@
|
||||
$role = um_get_option('default_role');
|
||||
}
|
||||
|
||||
if ( !in_array( $role, $ultimatemember->query->get_roles( false, array('admin') ) ) ) {
|
||||
if ( !array_key_exists( $role, $ultimatemember->query->get_roles( false, array('admin') ) ) ) {
|
||||
$role = um_get_option('default_role');
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -2176,7 +2176,7 @@ class UM_Fields {
|
||||
if ( isset( $this->set_mode ) ) {
|
||||
$output = apply_filters("um_{$key}_form_show_field", $output, $this->set_mode);
|
||||
$output = apply_filters("um_{$type}_form_show_field", $output, $this->set_mode);
|
||||
|
||||
|
||||
}
|
||||
|
||||
return $output;
|
||||
|
||||
Reference in New Issue
Block a user