From 4685bc4b99c05c470f0231a2e1d29571d86d6009 Mon Sep 17 00:00:00 2001 From: Ryan Boren 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: https://develop.svn.wordpress.org/trunk@18965 602fd350-edb4-49c9-b593-d223f7449a82 --- 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;