From db03ca0c133e32fc092ba3b6a29583d5fb4a9e6b Mon Sep 17 00:00:00 2001 From: wpmuguru Date: Wed, 31 Mar 2010 18:23:05 +0000 Subject: [PATCH] block enabling network when siteurl and home are not the same, see #12736 git-svn-id: http://svn.automattic.com/wordpress/trunk@13904 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/network.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp-admin/network.php b/wp-admin/network.php index cb49043ccc..7a842b4b10 100644 --- a/wp-admin/network.php +++ b/wp-admin/network.php @@ -54,6 +54,9 @@ function get_clean_basedomain() { if ( ! network_domain_check() && ( ! defined( 'WP_ALLOW_MULTISITE' ) || ! WP_ALLOW_MULTISITE ) ) wp_die( __( 'You must define the WP_ALLOW_MULTISITE constant as true in your wp-config.php file to allow creation of a Network.' ) ); +if ( get_option( 'siteurl' ) != get_option( 'home' ) ) + wp_die( __( 'Your WordPress address must match your Site address before creating a Network.' ) ); + $title = __( 'Create a Network of WordPress Sites' ); $parent_file = 'tools.php';