diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-04-13 14:27:33 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-04-13 14:27:33 +0000 |
commit | 7def3678b0178680aa541a26fb64cea494f8ec60 (patch) | |
tree | c1ac632b9c1d30153017071cb54104d73d606496 | |
parent | 27abc4330e63fd84b0835c4223a2b3a0c06e2241 (diff) | |
download | wordpress-mu-7def3678b0178680aa541a26fb64cea494f8ec60.tar.gz wordpress-mu-7def3678b0178680aa541a26fb64cea494f8ec60.tar.xz wordpress-mu-7def3678b0178680aa541a26fb64cea494f8ec60.zip |
Check activate_signup status before showing forms
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@963 7be80a69-a1ef-0310-a953-fb0f7c49ff36
-rw-r--r-- | wp-signup.php | 7 |
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' )
|