From b949e4b17939f4900eb69b4feb7f18c9484b5223 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Fri, 28 May 2010 02:52:40 +0000 Subject: [PATCH] Add some Apache checks to some notices in network.php. see #12758. git-svn-id: https://develop.svn.wordpress.org/trunk@15025 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/network.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/wp-admin/network.php b/wp-admin/network.php index d0b9f225d1..6b847a653a 100644 --- a/wp-admin/network.php +++ b/wp-admin/network.php @@ -116,6 +116,7 @@ include( './admin-header.php' ); * @since 3.0.0 */ function network_step1( $errors = false ) { + global $is_apache; if ( get_option( 'siteurl' ) != get_option( 'home' ) ) { echo '

' . __('Error:') . ' ' . sprintf( __( 'Your WordPress address must match your Site address before creating a Network. See General Settings.' ), esc_url( admin_url( 'options-general.php' ) ) ) . '

'; @@ -166,7 +167,6 @@ function network_step1( $errors = false ) {

' . __( 'Note:' ) . ' ' . __( 'Please make sure the Apache mod_rewrite module is installed as it will be used at the end of this installation.' ) . '

'; - else + elseif ( $is_apache ) echo '

' . __( 'Warning!' ) . ' ' . __( 'It looks like the Apache mod_rewrite module is not installed.' ) . '

'; - 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.' ) . '

'; + if ( $is_apache ) + 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.' ) . '

'; } if ( allow_subdomain_install() && allow_subdirectory_install() ) : ?>