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:
parent
6a201c6b6f
commit
4ae3e0349f
|
@ -43,8 +43,8 @@ function network_domain_check() {
|
||||||
* @return bool - whether subdomain install is allowed
|
* @return bool - whether subdomain install is allowed
|
||||||
*/
|
*/
|
||||||
function allow_subdomain_install() {
|
function allow_subdomain_install() {
|
||||||
$path = preg_replace( '|https?://[^/]|', '', get_option( 'siteurl' ) );
|
$domain = preg_replace( '|https?://[^/]|', '', get_option( 'siteurl' ) );
|
||||||
if( strlen( $path ) > 1 || 'localhost' == $_SERVER[ 'HTTP_HOST' ] )
|
if( false !== strpos( $domain, '/' ) || 'localhost' == $_SERVER[ 'HTTP_HOST' ] )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue