From 74dd287bd056637147d18ecb80c6eb6d881d2b17 Mon Sep 17 00:00:00 2001 From: wpmuguru Date: Wed, 27 Jan 2010 22:10:41 +0000 Subject: [PATCH] block multisite enable on localhost and ip address, see #11816 git-svn-id: http://svn.automattic.com/wordpress/trunk@12883 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/network.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/wp-admin/network.php b/wp-admin/network.php index cf93115f6d..b1d7f625bf 100644 --- a/wp-admin/network.php +++ b/wp-admin/network.php @@ -150,6 +150,9 @@ function printstep1form( $rewrite_enabled = false ) { $weblog_title = sprintf( __( '%s Sites' ), ucfirst( get_option( 'blogname' ) ) ); $email = get_option( 'admin_email' ); $hostname = get_clean_basedomain(); + $invalid_host = false; + if ( 'localhost' == $hostname || preg_match( '|[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+|', $hostname, $match ) ) + $invalid_host = true; if ( substr( $hostname, 0, 4 ) == 'www.' ) $nowww = substr( $hostname, 4 ); @@ -174,9 +177,12 @@ function printstep1form( $rewrite_enabled = false ) { +

%s.' ), $hostname ); ?>

+

localhost as your server address.' ); ?>

+ @@ -198,7 +204,9 @@ function printstep1form( $rewrite_enabled = false ) { +

' />

+