diff -r c7c34916027a -r 177826044cd9 wp/wp-admin/setup-config.php
--- a/wp/wp-admin/setup-config.php Mon Oct 14 18:06:33 2019 +0200
+++ b/wp/wp-admin/setup-config.php Mon Oct 14 18:28:13 2019 +0200
@@ -12,19 +12,19 @@
/**
* We are installing.
*/
-define('WP_INSTALLING', true);
+define( 'WP_INSTALLING', true );
/**
* We are blissfully unaware of anything.
*/
-define('WP_SETUP_CONFIG', true);
+define( 'WP_SETUP_CONFIG', true );
/**
* Disable error reporting
*
* Set this to error_reporting( -1 ) for debugging
*/
-error_reporting(0);
+error_reporting( 0 );
if ( ! defined( 'ABSPATH' ) ) {
define( 'ABSPATH', dirname( dirname( __FILE__ ) ) . '/' );
@@ -46,17 +46,20 @@
} elseif ( file_exists( dirname( ABSPATH ) . '/wp-config-sample.php' ) ) {
$config_file = file( dirname( ABSPATH ) . '/wp-config-sample.php' );
} else {
- wp_die( sprintf(
- /* translators: %s: wp-config-sample.php */
- __( 'Sorry, I need a %s file to work from. Please re-upload this file to your WordPress installation.' ),
- 'wp-config-sample.php'
- ) );
+ wp_die(
+ sprintf(
+ /* translators: %s: wp-config-sample.php */
+ __( 'Sorry, I need a %s file to work from. Please re-upload this file to your WordPress installation.' ),
+ 'wp-config-sample.php'
+ )
+ );
}
// Check if wp-config.php has been created
if ( file_exists( ABSPATH . 'wp-config.php' ) ) {
- wp_die( '
' . sprintf( - /* translators: 1: wp-config.php 2: install.php */ + wp_die( + '
' . sprintf(
+ /* translators: 1: wp-config.php, 2: install.php */
__( '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 installing now.' ),
'wp-config.php',
'install.php'
@@ -66,8 +69,9 @@
// Check if wp-config.php exists above the root directory but is not part of another installation
if ( @file_exists( ABSPATH . '../wp-config.php' ) && ! @file_exists( ABSPATH . '../wp-settings.php' ) ) {
- wp_die( '
' . sprintf( - /* translators: 1: wp-config.php 2: install.php */ + wp_die( + '
' . sprintf(
+ /* translators: 1: wp-config.php, 2: install.php */
__( '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 installing now.' ),
'wp-config.php',
'install.php'
@@ -89,16 +93,18 @@
* @param string|array $body_classes
*/
function setup_config_display_header( $body_classes = array() ) {
- $body_classes = (array) $body_classes;
+ $body_classes = (array) $body_classes;
$body_classes[] = 'wp-core-ui';
+ $dir_attr = '';
if ( is_rtl() ) {
$body_classes[] = 'rtl';
+ $dir_attr = ' dir="rtl"';
}
header( 'Content-Type: text/html; charset=utf-8' );
-?>
+ ?>
->
+>
wp-config.php'
- );
- ?>
-
+ wp-config.php'
+ );
+ ?>
+
+ wp-config-sample.php',
'wp-config.php'
);
- ?>
- We got it.' ),
- __( 'https://codex.wordpress.org/Editing_wp-config.php' )
- );
-?>