Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix network role mapping #93

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

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()
2 participants