X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/7f1521bf193b382565eb753043c161f4cb3fcda7..53f4633144ed68c8b8fb5861f992b5489894a940:/wp-admin/network.php diff --git a/wp-admin/network.php b/wp-admin/network.php index fdc0a51b..ae351510 100644 --- a/wp-admin/network.php +++ b/wp-admin/network.php @@ -35,6 +35,9 @@ foreach ( $wpdb->tables( 'ms_global' ) as $table => $prefixed_table ) * Check for an existing network. * * @since 3.0.0 + * + * @global wpdb $wpdb + * * @return Whether a network exists. */ function network_domain_check() { @@ -55,7 +58,7 @@ function network_domain_check() { */ 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 ) ) + 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; @@ -64,6 +67,9 @@ function allow_subdomain_install() { * Allow subdirectory install. * * @since 3.0.0 + * + * @global wpdb $wpdb + * * @return bool Whether subdirectory install is allowed */ function allow_subdirectory_install() { @@ -139,7 +145,7 @@ get_current_screen()->set_help_sidebar( include( ABSPATH . 'wp-admin/admin-header.php' ); ?>
-

+