will the real host please step forward, fixes #13594
git-svn-id: https://develop.svn.wordpress.org/trunk@15037 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7567583a61
commit
ae20f0776b
@ -43,7 +43,7 @@ function network_domain_check() {
|
||||
* @return bool Whether subdomain install is allowed
|
||||
*/
|
||||
function allow_subdomain_install() {
|
||||
$domain = preg_replace( '|https?://[^/]|', '', get_option( 'siteurl' ) );
|
||||
$domain = preg_replace( '|https?://([^/]+)|', '$1', get_option( 'siteurl' ) );
|
||||
if( false !== strpos( $domain, '/' ) || 'localhost' == $domain || preg_match( '|[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+|', $domain ) )
|
||||
return false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user