Skip to content

Conversation

@roborourke
Copy link
Contributor

  • 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

* 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
@roborourke roborourke requested a review from rmccue January 15, 2025 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Role mapping does not restore_current_blog()

3 participants