Add is_subdomain_install() to ms code - Fixes #11796

git-svn-id: https://develop.svn.wordpress.org/trunk@12674 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ron Rennick
2010-01-08 21:25:01 +00:00
parent 71bef9fe26
commit 436316a4a8
8 changed files with 112 additions and 97 deletions
+2 -2
View File
@@ -70,7 +70,7 @@ switch( $_GET['action'] ) {
if ( false === $blog_details ) {
if ( is_numeric( $dashboard_blog ) )
wp_die( __( 'Dashboard blog_id must be a blog that already exists' ) );
if ( constant( 'VHOST' ) == 'yes' ) {
if ( is_subdomain_install() ) {
$domain = $dashboard_blog . '.' . $current_site->domain;
$path = $current_site->path;
} else {
@@ -145,7 +145,7 @@ switch( $_GET['action'] ) {
if( !is_email( $email ) )
wp_die( __('Invalid email address') );
if( constant( 'VHOST' ) == 'yes' ) {
if( is_subdomain_install() ) {
$newdomain = $domain.".".$current_site->domain;
$path = $base;
} else {