Definition:
function allow_subdomain_install() {}
Allow subdomain install
Return values
returns:Whether subdomain install is allowed
Source code
function allow_subdomain_install() {
$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;
return true;
}
529

February 11, 2011 


No comments yet... Be the first to leave a reply!