Make WordPress Core

Changeset 16921


Ignore:
Timestamp:
12/14/2010 05:02:29 PM (14 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

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

    r16900 r16921  
    337337        <p><?php _e( 'Complete the following steps to enable the features for creating a network of sites.' ); ?></p>
    338338        <div class="updated inline"><p><?php
    339             if ( iis7_supports_permalinks() )
     339            if ( file_exists( ABSPATH . '.htaccess' ) )
     340                printf( __( '<strong>Caution:</strong> We recommend you back up your existing <code>wp-config.php</code> and <code>%s</code> files.' ), '.htaccess' );
     341            elseif ( file_exists( ABSPATH . 'web.config' ) )
     342                printf( __( '<strong>Caution:</strong> We recommend you back up your existing <code>wp-config.php</code> and <code>%s</code> files.' ), 'web.config' );
     343            else
    340344                _e( '<strong>Caution:</strong> We recommend you back up your existing <code>wp-config.php</code> file.' );
    341             else
    342                 _e( '<strong>Caution:</strong> We recommend you back up your existing <code>wp-config.php</code> and <code>.htaccess</code> files.' );
    343345        ?></p></div>
    344346<?php
Note: See TracChangeset for help on using the changeset viewer.