Ticket #18180: 18180.diff
File 18180.diff, 1.9 KB (added by , 14 years ago) |
---|
-
wp-admin/setup-config.php
50 50 require_once(ABSPATH . WPINC . '/class-wp-error.php'); 51 51 52 52 if (!file_exists(ABSPATH . 'wp-config-sample.php')) 53 wp_die( 'Sorry, I need a wp-config-sample.php file to work from. Please re-upload this file from your WordPress installation.');53 wp_die( __( 'Sorry, I need a wp-config-sample.php file to work from. Please re-upload this file from your WordPress installation.' ) ); 54 54 55 55 $configFile = file(ABSPATH . 'wp-config-sample.php'); 56 56 57 57 // Check if wp-config.php has been created 58 58 if (file_exists(ABSPATH . 'wp-config.php')) 59 wp_die( "<p>The file 'wp-config.php' already exists. If you need to reset any of the configuration items in this file, please delete it first. You may try <a href='install.php'>installing now</a>.</p>");59 wp_die( __( "<p>The file 'wp-config.php' already exists. If you need to reset any of the configuration items in this file, please delete it first. You may try <a href='install.php'>installing now</a>.</p>" ) ); 60 60 61 61 // Check if wp-config.php exists above the root directory but is not part of another install 62 62 if (file_exists(ABSPATH . '../wp-config.php') && ! file_exists(ABSPATH . '../wp-settings.php')) 63 wp_die( "<p>The file 'wp-config.php' already exists one level above your WordPress installation. If you need to reset any of the configuration items in this file, please delete it first. You may try <a href='install.php'>installing now</a>.</p>");63 wp_die( __( "<p>The file 'wp-config.php' already exists one level above your WordPress installation. If you need to reset any of the configuration items in this file, please delete it first. You may try <a href='install.php'>installing now</a>.</p>" ) ); 64 64 65 65 if (isset($_GET['step'])) 66 66 $step = $_GET['step'];