#25166 closed defect (bug) (fixed)
New users are automatically subscribed to the main blog
Reported by: | conner_bw | Owned by: | nacin |
---|---|---|---|
Milestone: | 3.6.1 | Priority: | normal |
Severity: | major | Version: | 3.6 |
Component: | Multisite | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
Prerequisites:
- Install WordPress 3.6 Multi-Site
- Enable "Both sites and user accounts can be registered."
- Logout
Steps to reproduce:
- As a new user, sign up for a new site (Aka: Gimme a site!)
- Successfully go through the process
Expected:
- User is not a Subscriber to main blog, rather she an Admin to her own blog.
Actual:
- User is a Subscriber to main blog, and and Admin to her own blog.
Extra:
"Expected" was happening in 3.4, and 3.5.
This issue started happened when we upgraded to 3.6
I did a trace and add_action( 'wpmu_activate_user', 'add_new_user_to_blog', 10, 3 );
and
add_new_user_to_blog()
never gets called. This is where the desired action happens.
Thank you for your consderation
Attachments (1)
Change History (7)
#1
@
11 years ago
- Component changed from General to Multisite
- Milestone changed from Awaiting Review to 3.7
#2
@
11 years ago
I traced this to [23307] for #15627. AFAICT that change is invalid since delete_user_option()
will add $wpdb->prefix
by default, so we went from deleting wp_capabilities
to wp_wp_capabilities
(assuming the default prefix).
I think we should revert and re-open that ticket. It seems to me that the problem described in #15627 is about using wp_insert_user()
and the capabilities removal in wpmu_create_user()
was working okay.
Might be related to [23535] (#15173).