From 075821896d73bb351e58a5b4b9587af13e46248f Mon Sep 17 00:00:00 2001 From: wpmuguru Date: Tue, 26 Jan 2010 21:22:44 +0000 Subject: [PATCH] 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 --- wp-signup.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/wp-signup.php b/wp-signup.php index 395eeccf1f..38ac06aa16 100644 --- a/wp-signup.php +++ b/wp-signup.php @@ -22,7 +22,12 @@ function signuppageheaders() { echo "\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(); }