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
This commit is contained in:
Ron Rennick 2010-03-31 18:23:05 +00:00
parent f653d1710a
commit ca9b460f34
1 changed files with 3 additions and 0 deletions

View File

@ -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 <code>WP_ALLOW_MULTISITE</code> 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 <strong>WordPress address</strong> must match your <strong>Site address</strong> before creating a Network.' ) );
$title = __( 'Create a Network of WordPress Sites' );
$parent_file = 'tools.php';