From 3238d5ef6addfa372acfb91bffa6c392575c8013 Mon Sep 17 00:00:00 2001 From: champsupertramp Date: Tue, 1 Mar 2016 22:40:55 +0800 Subject: [PATCH] Fix community role field in profile edit screen --- core/um-user.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/um-user.php b/core/um-user.php index 578e8200..cad71fdd 100644 --- a/core/um-user.php +++ b/core/um-user.php @@ -57,7 +57,8 @@ class UM_User { function community_role_edit( $user ) { global $ultimatemember; if ( current_user_can( 'edit_users' ) && current_user_can( 'edit_user', $user->ID ) ) { - um_fetch_user( $user->ID ); + + $um_user_role = get_user_meta($user->ID,'role',true); ?> @@ -68,7 +69,7 @@ class UM_User {