diff --git a/wp-admin/network.php b/wp-admin/network.php index 0a766b49cc..68a984592e 100644 --- a/wp-admin/network.php +++ b/wp-admin/network.php @@ -50,14 +50,14 @@ function allow_subdomain_install() { return true; } /** - * Allow folder install + * Allow subdirectory install * * @since 3.0.0 - * @return bool Whether folder install is allowed + * @return bool Whether subdirectory install is allowed */ -function allow_folder_install() { +function allow_subdirectory_install() { global $wpdb; - if ( apply_filters( 'allow_folder_install', false ) ) + if ( apply_filters( 'allow_subdirectory_install', false ) ) return true; $post = $wpdb->get_row( "SELECT ID FROM $wpdb->posts WHERE post_date < DATE_SUB(NOW(), INTERVAL 1 MONTH) AND post_status = 'publish'" ); @@ -161,7 +161,7 @@ function network_step1( $errors = false ) { $subdomain_install = (bool) $_POST['subdomain_install']; } elseif ( apache_mod_loaded('mod_rewrite') ) { // assume nothing $subdomain_install = true; - } elseif ( !allow_folder_install() ) { + } elseif ( !allow_subdirectory_install() ) { $subdomain_install = true; } else { $subdomain_install = false; @@ -172,7 +172,7 @@ function network_step1( $errors = false ) { echo '
' . __( 'If mod_rewrite
is disabled, ask your administrator to enable that module, or look at the Apache documentation or elsewhere for help setting it up.' ) . '
You cannot change this later.' ); ?>
@@ -211,17 +211,29 @@ function network_step1( $errors = false ) {localhost.localdomain
if you wish to use sub-domains.' ); ?>localhost.localdomain
if you wish to use sub-domains.' );
+ // Uh oh:
+ if ( !allow_subdirectory_install() )
+ echo ' ' . __( 'Warning!' ) . ' ' . __( 'The main site in a sub-directory install will need to use a modified permalink structure, potentially breaking existing links.' ) . '';
+ ?>