Make WordPress Core

Changeset 14704 for trunk/wp-signup.php


Ignore:
Timestamp:
05/16/2010 10:36:58 PM (14 years ago)
Author:
wpmuguru
Message:

use get_blogaddress_by_name in wp-signup, see #12735

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-signup.php

    r14575 r14704  
    433433                _e( 'You are logged in already. No need to register again!' );
    434434
    435             if ($newblogname) {
    436                 if ( !is_subdomain_install() )
    437                     $newblog = 'http://' . $current_site->domain . $current_site->path . $newblogname . '/';
    438                 else
    439                     $newblog = 'http://' . $newblogname . '.' . $current_site->domain . $current_site->path;
     435            if ( $newblogname ) {
     436                $newblog = get_blogaddress_by_name( $newblogname );
     437
    440438                if ( $active_signup == 'blog' || $active_signup == 'all' )
    441439                    printf( __( '<p><em>The site you were looking for, <strong>%s</strong> does not exist, but you can create it now!</em></p>' ), $newblog );
Note: See TracChangeset for help on using the changeset viewer.