Opened 10 years ago
Closed 10 years ago
#2206 closed defect (bug) (worksforme)
User is added to all subdomain sites as participant after calling add_user_to_blog function in a plugin when bbPress is active
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | trunk |
Component: | Component - Users | Keywords: | |
Cc: |
Description
When using Wordpress (Multisite) (v3.4.2) add_user_to_blog function in plugin code, and bbPress is active, admin user who is calling the plugin code is added to all subdomain sites as participants.
Admin user does not appear in user list on subdomain, but does have capabilities and levels (of 0) entries in the wp_usermeta table for all subdomain sites. All subdomain sites appear in this admin user's drop down list of Sites.
Change History (5)
Note: See
TracTickets for help on using
tickets.
I think this issue manifests using the wp_create_user function rather than the add_user_to_blog function, or rather both used together. I wrote a simple test with add_user_to_blog function and the issue did not occur. I modified the code to create a user first with wp_create_user and then used add_user_to_blog and the issue manifested.
Unfortunately, used this test on a new install of Wordpress v3.4.2 multisite with bbPress activated, but could not replicate the issue with a few sub sites and a few users (less than 4 of each). It is currently causing the issue on my live installation with 70+ users and 25+ sub sites.