* Check for an existing network.
*
* @since 3.0.0
+ *
+ * @global wpdb $wpdb
+ *
* @return Whether a network exists.
*/
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;
* Allow subdirectory install.
*
* @since 3.0.0
+ *
+ * @global wpdb $wpdb
+ *
* @return bool Whether subdirectory install is allowed
*/
function allow_subdirectory_install() {
include( ABSPATH . 'wp-admin/admin-header.php' );
?>
<div class="wrap">
-<h2><?php echo esc_html( $title ); ?></h2>
+<h1><?php echo esc_html( $title ); ?></h1>
<?php
/**
* should not be a sudden "Welcome to a new install process! Fill this out and click here." See also contextual help todo.
*
* @since 3.0.0
+ *
+ * @global bool $is_apache
+ *
+ * @param WP_Error $errors
*/
function network_step1( $errors = false ) {
global $is_apache;
* Prints step 2 for Network installation process.
*
* @since 3.0.0
+ *
+ * @global wpdb $wpdb
+ *
+ * @param WP_Error $errors
*/
function network_step2( $errors = false ) {
global $wpdb;