Revert [23307] so new users in multisite are not automatically subscribers on the main site.
props duck_. fixes #25166 for trunk. see #15627. Built from https://develop.svn.wordpress.org/trunk@25183 git-svn-id: http://core.svn.wordpress.org/trunk@25155 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
93b2edbbba
commit
5a312f71f6
|
@ -899,10 +899,8 @@ function wpmu_create_user( $user_name, $password, $email ) {
|
|||
if ( is_wp_error( $user_id ) )
|
||||
return false;
|
||||
|
||||
$user = new WP_User( $user_id );
|
||||
|
||||
// Newly created users have no roles or caps until they are added to a blog.
|
||||
delete_user_option( $user_id, $user->cap_key );
|
||||
delete_user_option( $user_id, 'capabilities' );
|
||||
delete_user_option( $user_id, 'user_level' );
|
||||
|
||||
do_action( 'wpmu_new_user', $user_id );
|
||||
|
|
Loading…
Reference in New Issue