From cf3bf584f07921a66e9c2aeb17538a695af36f39 Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 14 Dec 2010 17:02:29 +0000 Subject: [PATCH] Better backup notices. Props SergeyBiryukov, kapeels. fixes #15753 git-svn-id: http://svn.automattic.com/wordpress/trunk@16921 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 9a8bd2f2d..9080a2b5d 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.' ); ?>