Make WordPress Core

Changeset 12856


Ignore:
Timestamp:
01/26/2010 09:22:44 PM (15 years ago)
Author:
wpmuguru
Message:

Redirect wp-signup.php to register when not multisite, See #11644

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-signup.php

    r12752 r12856  
    2323}
    2424
    25 if ( $current_blog->domain . $current_blog->path != $current_site->domain . $current_site->path ) {
     25if ( !is_multisite() ) {
     26    wp_redirect( get_option( 'siteurl' ) . "/wp-login.php?action=register" );
     27    die();
     28}
     29
     30if ( !is_main_site() ) {
    2631    wp_redirect( "http://" . $current_site->domain . $current_site->path . "wp-signup.php" );
    2732    die();
Note: See TracChangeset for help on using the changeset viewer.