mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 14:50:29 +00:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user