fix selecting radio and select roles

This commit is contained in:
Denis Baranov
2018-06-17 22:49:01 +03:00
parent 616a707f39
commit 6ec8fcc688
3 changed files with 10 additions and 12 deletions
+1 -7
View File
@@ -1657,18 +1657,12 @@ if ( ! class_exists( 'um\core\User' ) ) {
*/
$changes = apply_filters('um_before_update_profile', $changes, $this->id );
// save or update profile meta
foreach ( $changes as $key => $value ) {
if ( ! in_array( $key, $this->update_user_keys ) ) {
update_user_meta( $this->id, $key, $value );
} else {
$args[$key] = esc_attr( $changes[$key] );
$args[$key] = esc_attr( $changes['role_radio'] );
}
}