From ca9b460f346465dbd62e6ca3fb7871c5b0583c51 Mon Sep 17 00:00:00 2001 From: Ron Rennick 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: https://develop.svn.wordpress.org/trunk@13904 602fd350-edb4-49c9-b593-d223f7449a82 --- 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';