Make WordPress Core

Changeset 15024


Ignore:
Timestamp:
05/28/2010 02:41:01 AM (15 years ago)
Author:
nacin
Message:

Don't tell IIS users to back up their .htaccess files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/network.php

    r15022 r15024  
    308308        <h3><?php esc_html_e( 'Enabling the Network' ); ?></h3>
    309309        <p><?php _e( 'Complete the following steps to enable the features for creating a network of sites.' ); ?></p>
    310         <div class="updated inline"><p><?php _e( '<strong>Caution:</strong> We recommend you backup your existing <code>wp-config.php</code> and <code>.htaccess</code> files.' ); ?></p></div>
     310        <div class="updated inline"><p><?php
     311            if ( iis7_supports_permalinks() )
     312                _e( '<strong>Caution:</strong> We recommend you back up your existing <code>wp-config.php</code> file.' );
     313            else
     314                _e( '<strong>Caution:</strong> We recommend you back up your existing <code>wp-config.php</code> and <code>.htaccess</code> files.' );
     315        ?></p></div>
    311316<?php
    312317    }
     
    359364</li>
    360365<?php
    361     if ( iis7_supports_permalinks() ) {
     366    if ( iis7_supports_permalinks() ) :
     367
    362368            if ( $subdomain_install ) {
    363369                $web_config_file =
     
    441447        </textarea></li>
    442448        </ol>
    443     <?php } else {
    444         // Construct an htaccess file.
     449
     450    <?php else : // end iis7_supports_permalinks(). construct an htaccess file instead:
     451
    445452        $htaccess_file = 'RewriteEngine On
    446453RewriteBase ' . $base . '
     
    470477        </textarea></li>
    471478        </ol>
    472     <?php }
     479
     480    <?php endif; // end IIS/Apache code branches.
     481
    473482    if ( !is_multisite() ) { ?>
    474483        <p><?php printf( __( 'Once you complete these steps, your network is enabled and configured. You will have to log in again.') ); ?> <a href="<?php echo esc_url( site_url( 'wp-login.php' ) ); ?>"><?php _e( 'Log In' ); ?></a></p>
Note: See TracChangeset for help on using the changeset viewer.