diff --git a/wp-admin/network.php b/wp-admin/network.php index cf5deb9dc7..e6f951314c 100644 --- a/wp-admin/network.php +++ b/wp-admin/network.php @@ -56,11 +56,9 @@ function network_step1() { } $hostname = get_clean_basedomain(); - if ( 'localhost' == $hostname || preg_match( '|[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+|', $hostname ) ) { + if ( preg_match( '|[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+|', $hostname ) ) { echo '

' . __('You cannot install a network of sites with your server address.' ) . '

'; - echo '

' . __('You cannot use an IP address such as 127.0.0.1 or a single-word hostname like localhost.' ) . '

'; - if ( 'localhost' == $hostname ) - echo '

' . __('Consider using localhost.localdomain.') . '

'; + echo '

' . __('You cannot use an IP address such as 127.0.0.1.' ) . '

'; include( './admin-footer.php' ); die(); } @@ -93,8 +91,8 @@ function network_step1() { +

-

You cannot change this later.' ); ?>

@@ -113,6 +111,8 @@ function network_step1() { @@ -131,6 +131,12 @@ function network_step1() {

+ + + + + + @@ -174,7 +180,7 @@ function network_step2() {
  • wp-config.php file in %s:' ), ABSPATH ); ?>

  • localhost, the sites in your WordPress network must use sub-directories. Consider using localhost.localdomain if you wish to use sub-domains.'); ?>