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:
Ron Rennick 2010-04-02 03:27:08 +00:00
parent 96144d31d9
commit 52c9389af1
1 changed files with 2 additions and 2 deletions

View File

@ -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;