summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--wp-signup.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/wp-signup.php b/wp-signup.php
index 7e0cfc1..dc25897 100644
--- a/wp-signup.php
+++ b/wp-signup.php
@@ -390,10 +390,13 @@ switch ($_POST['stage']) {
default :
$user_email = $_POST[ 'user_email' ];
do_action( "preprocess_signup_form" ); // populate the form from invites, elsewhere?
- if ( is_user_logged_in() )
+ if ( is_user_logged_in() && ( $active_signup == 'all' || $active_signup == 'blog' ) ) {
signup_another_blog($newblogname);
- else
+ } elseif( is_user_logged_in() == false && ( $active_signup == 'all' || $active_signup == 'user' ) ) {
signup_user( $newblogname, $user_email );
+ } else {
+ _e( "You're logged in already. No need to register again!" );
+ }
if ($newblogname) {
if( constant( "VHOST" ) == 'no' )