Ticket #42161: 42161.patch
File 42161.patch, 1.7 KB (added by , 7 years ago) |
---|
-
wp-admin/setup-config.php
51 51 // Check if wp-config.php has been created 52 52 if ( file_exists( ABSPATH . 'wp-config.php' ) ) 53 53 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>." ), 54 /* translators: 1: wp-config.php 2: install.php */ 55 __( '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>.' ), 56 '<code>wp-config.php</code>', 56 57 'install.php' 57 58 ) . '</p>' 58 59 ); … … 60 61 // Check if wp-config.php exists above the root directory but is not part of another installation 61 62 if ( @file_exists( ABSPATH . '../wp-config.php' ) && ! @file_exists( ABSPATH . '../wp-settings.php' ) ) { 62 63 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>." ), 64 /* translators: 1: wp-config.php 2: install.php */ 65 __( '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>.' ), 66 '<code>wp-config.php</code>', 65 67 'install.php' 66 68 ) . '</p>' 67 69 );