From 1835dbf737390dd0cf5a5469d71c1fe4d9df7f16 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 4 May 2011 18:38:17 +0000 Subject: [PATCH] Check if empty to avoid noticed when signing up for username in multisite. Props jfarthing84, kawauso. fixes #16680 git-svn-id: http://svn.automattic.com/wordpress/trunk@17794 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/ms-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/ms-functions.php b/wp-includes/ms-functions.php index 16f5a05aa..f9d38f0d0 100644 --- a/wp-includes/ms-functions.php +++ b/wp-includes/ms-functions.php @@ -1860,7 +1860,7 @@ function add_existing_user_to_blog( $details = false ) { */ function add_new_user_to_blog( $user_id, $email, $meta ) { global $current_site; - if ( $meta[ 'add_to_blog' ] ) { + if ( !empty( $meta[ 'add_to_blog' ] ) ) { $blog_id = $meta[ 'add_to_blog' ]; $role = $meta[ 'new_role' ]; remove_user_from_blog($user_id, $current_site->blog_id); // remove user from main blog.