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

git-svn-id: https://develop.svn.wordpress.org/trunk@12856 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ron Rennick 2010-01-26 21:22:44 +00:00
parent ed156968a3
commit afede400bf
1 changed files with 6 additions and 1 deletions

View File

@ -22,7 +22,12 @@ function signuppageheaders() {
echo "<meta name='robots' content='noindex,nofollow' />\n"; echo "<meta name='robots' content='noindex,nofollow' />\n";
} }
if ( $current_blog->domain . $current_blog->path != $current_site->domain . $current_site->path ) { if ( !is_multisite() ) {
wp_redirect( get_option( 'siteurl' ) . "/wp-login.php?action=register" );
die();
}
if ( !is_main_site() ) {
wp_redirect( "http://" . $current_site->domain . $current_site->path . "wp-signup.php" ); wp_redirect( "http://" . $current_site->domain . $current_site->path . "wp-signup.php" );
die(); die();
} }