From 924a3227d8387784d6bcc88ff709158acd3011aa Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Fri, 30 Aug 2013 16:28:59 +0000 Subject: [PATCH] Revert [23307] so new users in multisite are not automatically subscribers on the main site. props duck_. fixes #25166 for trunk. see #15627. git-svn-id: https://develop.svn.wordpress.org/trunk@25183 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/ms-functions.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/wp-includes/ms-functions.php b/src/wp-includes/ms-functions.php index 6d16269c81..7ac4f56ab2 100644 --- a/src/wp-includes/ms-functions.php +++ b/src/wp-includes/ms-functions.php @@ -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 );