Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
  • Loading branch information...
commit 3c97397d03df327116f69d145ae37236c413eddc 1 parent 9fb13d2
wpmuguru authored
Showing with 3 additions and 5 deletions.
  1. +3 −5 wp-signup.php
View
8 wp-signup.php
@@ -432,11 +432,9 @@ function confirm_blog_signup($domain, $path, $blog_title, $user_name = '', $user
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( __( '<p><em>The site you were looking for, <strong>%s</strong> does not exist, but you can create it now!</em></p>' ), $newblog );
else
Please sign in to comment.
Something went wrong with that request. Please try again.