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:
parent
ed156968a3
commit
afede400bf
@ -22,7 +22,12 @@ function signuppageheaders() {
|
||||
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" );
|
||||
die();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user