mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-30 20:08:34 +00:00
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
This commit is contained in:
parent
9fb13d2cba
commit
3c97397d03
@ -432,11 +432,9 @@ if ( $active_signup == "none" ) {
|
|||||||
else
|
else
|
||||||
_e( 'You are logged in already. No need to register again!' );
|
_e( 'You are logged in already. No need to register again!' );
|
||||||
|
|
||||||
if ($newblogname) {
|
if ( $newblogname ) {
|
||||||
if ( !is_subdomain_install() )
|
$newblog = get_blogaddress_by_name( $newblogname );
|
||||||
$newblog = 'http://' . $current_site->domain . $current_site->path . $newblogname . '/';
|
|
||||||
else
|
|
||||||
$newblog = 'http://' . $newblogname . '.' . $current_site->domain . $current_site->path;
|
|
||||||
if ( $active_signup == 'blog' || $active_signup == 'all' )
|
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 );
|
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
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user