From 1e3784ca4c4982490579da52c59875a8a840353d Mon Sep 17 00:00:00 2001 From: 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: http://svn.automattic.com/wordpress/trunk@15025 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 d0b9f225d..6b847a653 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() ) : ?>