mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-19 06:33:50 +09:00
- reviewed #1330;
This commit is contained in:
@@ -607,6 +607,9 @@ if ( ! class_exists( 'um\core\Form' ) ) {
|
||||
|
||||
$this->post_form['role'] = $role;
|
||||
$maybe_set_default_role = false;
|
||||
|
||||
// Force adding `role` metakey if there is a role-type field on the form. It's required to User Profile.
|
||||
$this->usermeta_whitelist[] = 'role';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user