Changeset 963

Show
Ignore:
Timestamp:
04/13/07 14:27:33 (2 years ago)
Author:
donncha
Message:

Check activate_signup status before showing forms

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-signup.php

    r962 r963  
    391391                $user_email = $_POST[ 'user_email' ]; 
    392392                do_action( "preprocess_signup_form" ); // populate the form from invites, elsewhere? 
    393                 if ( is_user_logged_in() ) 
     393                if ( is_user_logged_in() && ( $active_signup == 'all' || $active_signup == 'blog' ) ) { 
    394394                        signup_another_blog($newblogname); 
    395                 else 
     395                } elseif( is_user_logged_in() == false && ( $active_signup == 'all' || $active_signup == 'user' ) ) { 
    396396                        signup_user( $newblogname, $user_email ); 
     397                } else { 
     398                        _e( "You're logged in already. No need to register again!" ); 
     399                } 
    397400 
    398401                if ($newblogname) {