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

git-svn-id: http://svn.automattic.com/wordpress/trunk@12856 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
wpmuguru 2010-01-26 21:22:44 +00:00
parent 9f1aa91f37
commit 075821896d
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();
} }