allow_subdomain_install()
最后更新于:2021-11-25 19:47:34
allow_subdomain_install()Allow subdomain installation
响应
(bool) Whether subdomain installation is allowed
源文件
文件: gc-admin/includes/network.php
function allow_subdomain_install() {
$domain = preg_replace( '|https?://([^/]+)|', '$1', get_option( 'home' ) );
if ( parse_url( get_option( 'home' ), PHP_URL_PATH ) || 'localhost' === $domain || preg_match( '|^[0-9]+.[0-9]+.[0-9]+.[0-9]+$|', $domain ) ) {
return false;
}
return true;
}