summaryrefslogtreecommitdiffstats
path: root/wp-includes
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-08-15 17:04:00 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-08-15 17:04:00 +0000
commitcc6a5e77364bd1ef8b35ac84de469962ab0028a5 (patch)
tree5ce020efb3aefcf5c29d1e07c85be7f6b41e62c7 /wp-includes
parent3f977686eee95c98da001dd3652c68200faabfe2 (diff)
downloadwordpress-mu-cc6a5e77364bd1ef8b35ac84de469962ab0028a5.tar.gz
wordpress-mu-cc6a5e77364bd1ef8b35ac84de469962ab0028a5.tar.xz
wordpress-mu-cc6a5e77364bd1ef8b35ac84de469962ab0028a5.zip
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
Diffstat (limited to 'wp-includes')
-rw-r--r--wp-includes/wpmu-functions.php1
1 files changed, 1 insertions, 0 deletions
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 <a href="' . site_url() . '">homepage</a> or <a href="' . site_url( '/wp-admin/' ) . '">login</a> using your username and password.' );
}