fix folder install detection in [13926], see #12736
git-svn-id: https://develop.svn.wordpress.org/trunk@13930 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
96144d31d9
commit
52c9389af1
@ -43,8 +43,8 @@ function network_domain_check() {
|
||||
* @return bool - whether subdomain install is allowed
|
||||
*/
|
||||
function allow_subdomain_install() {
|
||||
$path = preg_replace( '|https?://[^/]|', '', get_option( 'siteurl' ) );
|
||||
if( strlen( $path ) > 1 || 'localhost' == $_SERVER[ 'HTTP_HOST' ] )
|
||||
$domain = preg_replace( '|https?://[^/]|', '', get_option( 'siteurl' ) );
|
||||
if( false !== strpos( $domain, '/' ) || 'localhost' == $_SERVER[ 'HTTP_HOST' ] )
|
||||
return false;
|
||||
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user