Better backup notices. Props SergeyBiryukov, kapeels. fixes #15753

git-svn-id: https://develop.svn.wordpress.org/trunk@16921 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2010-12-14 17:02:29 +00:00
parent 176075ba48
commit deea690720
1 changed files with 5 additions and 3 deletions

View File

@ -336,10 +336,12 @@ function network_step2( $errors = false ) {
<h3><?php esc_html_e( 'Enabling the Network' ); ?></h3>
<p><?php _e( 'Complete the following steps to enable the features for creating a network of sites.' ); ?></p>
<div class="updated inline"><p><?php
if ( iis7_supports_permalinks() )
_e( '<strong>Caution:</strong> We recommend you back up your existing <code>wp-config.php</code> file.' );
if ( file_exists( ABSPATH . '.htaccess' ) )
printf( __( '<strong>Caution:</strong> We recommend you back up your existing <code>wp-config.php</code> and <code>%s</code> files.' ), '.htaccess' );
elseif ( file_exists( ABSPATH . 'web.config' ) )
printf( __( '<strong>Caution:</strong> We recommend you back up your existing <code>wp-config.php</code> and <code>%s</code> files.' ), 'web.config' );
else
_e( '<strong>Caution:</strong> We recommend you back up your existing <code>wp-config.php</code> and <code>.htaccess</code> files.' );
_e( '<strong>Caution:</strong> We recommend you back up your existing <code>wp-config.php</code> file.' );
?></p></div>
<?php
}