Changeset 983

Show
Ignore:
Timestamp:
05/23/07 09:52:09 (2 years ago)
Author:
donncha
Message:

Redirect to front page earlier in signup page

Files:

Legend:

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

    r969 r983  
    44require( 'wp-blog-header.php' ); 
    55require_once( ABSPATH . WPINC . '/registration.php' ); 
     6 
     7if( is_array( get_site_option( 'illegal_names' )) && $_GET[ 'new' ] != '' && in_array( $_GET[ 'new' ], get_site_option( 'illegal_names' ) ) == true ) { 
     8        header( "Location: http://{$current_site->domain}{$current_site->path}" ); 
     9        die(); 
     10} 
    611 
    712do_action("signup_header"); 
     
    363368 
    364369// Main 
    365 if( is_array( get_site_option( 'illegal_names' )) && $_GET[ 'new' ] != '' && in_array( $_GET[ 'new' ], get_site_option( 'illegal_names' ) ) == true ) { 
    366         header( "Location: http://{$current_site->domain}{$current_site->path}" ); 
    367         die(); 
    368 } 
    369  
    370370$active_signup = 'all'; 
    371371$active_signup = apply_filters( 'wpmu_active_signup', $active_signup ); // return "all", "none", "blog" or "user"