From 3c97397d03df327116f69d145ae37236c413eddc Mon Sep 17 00:00:00 2001 From: wpmuguru Date: Sun, 16 May 2010 22:36:58 +0000 Subject: [PATCH] use get_blogaddress_by_name in wp-signup, see #12735 git-svn-id: http://svn.automattic.com/wordpress/trunk@14704 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-signup.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/wp-signup.php b/wp-signup.php index ad6fffbe67..a0998c91db 100644 --- a/wp-signup.php +++ b/wp-signup.php @@ -432,11 +432,9 @@ if ( $active_signup == "none" ) { else _e( 'You are logged in already. No need to register again!' ); - if ($newblogname) { - if ( !is_subdomain_install() ) - $newblog = 'http://' . $current_site->domain . $current_site->path . $newblogname . '/'; - else - $newblog = 'http://' . $newblogname . '.' . $current_site->domain . $current_site->path; + if ( $newblogname ) { + $newblog = get_blogaddress_by_name( $newblogname ); + if ( $active_signup == 'blog' || $active_signup == 'all' ) printf( __( '

The site you were looking for, %s does not exist, but you can create it now!

' ), $newblog ); else