mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
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
This commit is contained in:
parent
165d200ced
commit
db03ca0c13
@ -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';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user