diff --git wp-admin/setup-config.php wp-admin/setup-config.php
index e416931..9094334 100644
|
|
if ( file_exists( ABSPATH . 'wp-config-sample.php' ) ) |
46 | 46 | elseif ( file_exists( dirname( ABSPATH ) . '/wp-config-sample.php' ) ) |
47 | 47 | $config_file = file( dirname( ABSPATH ) . '/wp-config-sample.php' ); |
48 | 48 | else |
49 | | wp_die( __( 'Sorry, I need a wp-config-sample.php file to work from. Please re-upload this file to your WordPress installation.' ) ); |
| 49 | wp_die( |
| 50 | sprintf( |
| 51 | /* translators: 1: wp-config-sample.php */ |
| 52 | __( 'Sorry, I need a %s file to work from. Please re-upload this file to your WordPress installation.' ), |
| 53 | 'wp-config-sample.php' |
| 54 | ) |
| 55 | ); |
50 | 56 | |
51 | 57 | // Check if wp-config.php has been created |
52 | 58 | if ( file_exists( ABSPATH . 'wp-config.php' ) ) |
53 | 59 | wp_die( '<p>' . sprintf( |
54 | | /* translators: %s: install.php */ |
55 | | __( "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='%s'>installing now</a>." ), |
| 60 | /* translators: %1$s: wp-config.php %2$s: install.php */ |
| 61 | __( "The file '%1$s' already exists. If you need to reset any of the configuration items in this file, please delete it first. You may try <a href='%2$s'>installing now</a>." ), |
| 62 | 'wp-config.php', |
56 | 63 | 'install.php' |
57 | 64 | ) . '</p>' |
58 | 65 | ); |
… |
… |
if ( file_exists( ABSPATH . 'wp-config.php' ) ) |
60 | 67 | // Check if wp-config.php exists above the root directory but is not part of another installation |
61 | 68 | if ( @file_exists( ABSPATH . '../wp-config.php' ) && ! @file_exists( ABSPATH . '../wp-settings.php' ) ) { |
62 | 69 | wp_die( '<p>' . sprintf( |
63 | | /* translators: %s: install.php */ |
64 | | __( "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='%s'>installing now</a>." ), |
| 70 | /* translators: %1$s: wp-config.php %2$s: install.php */ |
| 71 | __( "The file '%1$s' 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='%2$s'>installing now</a>." ), |
| 72 | 'wp-config.php', |
65 | 73 | 'install.php' |
66 | 74 | ) . '</p>' |
67 | 75 | ); |