From cc6a5e77364bd1ef8b35ac84de469962ab0028a5 Mon Sep 17 00:00:00 2001 From: donncha Date: Fri, 15 Aug 2008 17:04:00 +0000 Subject: Delete new_user_ key when user is added to blog. Update text to warn of confirmation email git-svn-id: http://svn.automattic.com/wordpress-mu/branches/2.6@1425 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wp-includes/wpmu-functions.php | 1 + 1 file changed, 1 insertion(+) (limited to 'wp-includes') diff --git a/wp-includes/wpmu-functions.php b/wp-includes/wpmu-functions.php index 567002b..758de63 100644 --- a/wp-includes/wpmu-functions.php +++ b/wp-includes/wpmu-functions.php @@ -1960,6 +1960,7 @@ function add_existing_user_to_blog() { $details = get_option( "new_user_" . $key ); if( is_array( $details ) ) { add_user_to_blog( '', $details[ 'user_id' ], $details[ 'role' ] ); + delete_option( 'new_user_' . $key ); do_action( "added_existing_user", $details[ 'user_id' ] ); wp_die( 'You have been added to this blog. Please visit the homepage or login using your username and password.' ); } -- cgit