You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The map_user_roles() function does not restore_current_blog() after looping over the sites, which might cause problems with subsequent logic that checks the current blog ID and whether the user is a member.
The text was updated successfully, but these errors were encountered:
* Stops overriding the full `$roles` array when removing `superadmin` from the list of roles to assign.
* Uses `add_user_to_blog()` for the initial role so that default site user meta and caches are created properly
* Restores the current blog so that subsequent logic eg. adding user to current site with default role behaves as expected
Fixes#90
The
map_user_roles()
function does notrestore_current_blog()
after looping over the sites, which might cause problems with subsequent logic that checks the current blog ID and whether the user is a member.The text was updated successfully, but these errors were encountered: