User role bug
-
Please fix /embedded/includes/usermeta-post.php per https://www.ads-software.com/support/topic/multiple-roles-roles-not-checked-or-not-saving?replies=2
Problem code:
$user_role = isset($user_id->roles) ? array_shift($user_id->roles) : 'subscriber';
Change to:
$tmp_roles = isset( $user_id->roles ) ? $user_id->roles : array( 'subscriber' ); $user_role = array_shift( $tmp_roles );
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘User role bug’ is closed to new replies.