From a733b40730bbec1471f2f83d2bb44bbe963d7e5a Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 13 Oct 2011 18:32:31 +0000 Subject: [PATCH] Fix inviting existing users to a site with email confirmation. Props johnbillion. fixes #18295 git-svn-id: http://svn.automattic.com/wordpress/trunk@18965 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/user-new.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/user-new.php b/wp-admin/user-new.php index 4b929a49e2..ed7074a1ef 100644 --- a/wp-admin/user-new.php +++ b/wp-admin/user-new.php @@ -59,7 +59,7 @@ if ( isset($_REQUEST['action']) && 'adduser' == $_REQUEST['action'] ) { wp_die(__('Cheatin’ uh?')); // Adding an existing user to this blog - $new_user_email = esc_html(trim($_REQUEST['email'])); + $new_user_email = $user_details->user_email; $redirect = 'user-new.php'; $username = $user_details->user_login; $user_id = $user_details->ID;