diff --git a/wp-admin/includes/ms.php b/wp-admin/includes/ms.php
index 3a4d1907bc..e16a13d3d6 100644
--- a/wp-admin/includes/ms.php
+++ b/wp-admin/includes/ms.php
@@ -670,10 +670,10 @@ function choose_primary_blog() {
-
+
|
diff --git a/wp-includes/canonical.php b/wp-includes/canonical.php
index 5aefe2ba09..77af5f6c10 100644
--- a/wp-includes/canonical.php
+++ b/wp-includes/canonical.php
@@ -295,11 +295,13 @@ function redirect_canonical( $requested_url = null, $do_redirect = true ) {
}
if ( 'wp-register.php' == basename( $redirect['path'] ) ) {
- if ( is_multisite() )
+ if ( is_multisite() ) {
/** This filter is documented in wp-login.php */
$redirect_url = apply_filters( 'wp_signup_location', network_site_url( 'wp-signup.php' ) );
- else
+ } else {
$redirect_url = site_url( 'wp-login.php?action=register' );
+ }
+
wp_redirect( $redirect_url, 301 );
die();
}
diff --git a/wp-login.php b/wp-login.php
index f642145f5a..59fa2f1991 100644
--- a/wp-login.php
+++ b/wp-login.php
@@ -643,7 +643,6 @@ break;
case 'register' :
if ( is_multisite() ) {
- $sign_up_url = network_site_url( 'wp-signup.php' );
/**
* Filter the Multisite sign up URL.
*
@@ -651,7 +650,7 @@ case 'register' :
*
* @param string $sign_up_url The sign up URL.
*/
- wp_redirect( apply_filters( 'wp_signup_location', $sign_up_url ) );
+ wp_redirect( apply_filters( 'wp_signup_location', network_site_url( 'wp-signup.php' ) ) );
exit;
}