-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve the logic around adding users to sites on group status modifi…
…cation. By ensuring the default roles are always set, we avoid issues where an empty role is passed to `add_user_to_blog()`, resulting in the user being assigned the Subscriber role. In addition, there's no reason to run the "promote" code when the 'silent_add' option is not checked. This is likely the cause of many bugs around the internet.
- Loading branch information
1 parent
d470094
commit 3e81e99
Showing
1 changed file
with
39 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters