fix folder install detection in [13926], see #12736

git-svn-id: http://svn.automattic.com/wordpress/trunk@13930 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
wpmuguru 2010-04-02 03:27:08 +00:00
parent 6a201c6b6f
commit 4ae3e0349f
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;