From deea690720eaf4a4efec7bf3e0faec10511b14d3 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 14 Dec 2010 17:02:29 +0000 Subject: [PATCH] Better backup notices. Props SergeyBiryukov, kapeels. fixes #15753 git-svn-id: https://develop.svn.wordpress.org/trunk@16921 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/network.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/wp-admin/network.php b/wp-admin/network.php index 9a8bd2f2d0..9080a2b5d1 100644 --- a/wp-admin/network.php +++ b/wp-admin/network.php @@ -336,10 +336,12 @@ function network_step2( $errors = false ) {

Caution: We recommend you back up your existing wp-config.php file.' ); + if ( file_exists( ABSPATH . '.htaccess' ) ) + printf( __( 'Caution: We recommend you back up your existing wp-config.php and %s files.' ), '.htaccess' ); + elseif ( file_exists( ABSPATH . 'web.config' ) ) + printf( __( 'Caution: We recommend you back up your existing wp-config.php and %s files.' ), 'web.config' ); else - _e( 'Caution: We recommend you back up your existing wp-config.php and .htaccess files.' ); + _e( 'Caution: We recommend you back up your existing wp-config.php file.' ); ?>