Ticket #42161: 42161.2.patch
File 42161.2.patch, 2.9 KB (added by , 7 years ago) |
---|
-
wp-admin/setup-config.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( sprintf( 50 /* translators: %s: wp-config-sample.php */ 51 __( 'The %s file is needed to work from. Please re-upload this file to your WordPress installation.' ), 52 '<code>wp-config-sample.php</code>' 53 ) ); 50 54 51 55 // Check if wp-config.php has been created 52 56 if ( file_exists( ABSPATH . 'wp-config.php' ) ) 53 57 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>." ), 58 /* translators: 1: wp-config.php 2: install.php */ 59 __( 'The %1$s file 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>.' ), 60 '<code>wp-config.php</code>', 56 61 'install.php' 57 62 ) . '</p>' 58 63 ); … … 60 65 // Check if wp-config.php exists above the root directory but is not part of another installation 61 66 if ( @file_exists( ABSPATH . '../wp-config.php' ) && ! @file_exists( ABSPATH . '../wp-settings.php' ) ) { 62 67 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>." ), 68 /* translators: 1: wp-config.php 2: install.php */ 69 __( 'The %1$s file 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>.' ), 70 '<code>wp-config.php</code>', 65 71 'install.php' 66 72 ) . '</p>' 67 73 ); … … 357 363 ?> 358 364 <p><?php 359 365 /* translators: %s: wp-config.php */ 360 printf( __( ' Sorry, but I can’t write the %s file.' ), '<code>wp-config.php</code>' );366 printf( __( 'The %s file cannot be written.' ), '<code>wp-config.php</code>' ); 361 367 ?></p> 362 368 <p><?php 363 369 /* translators: %s: wp-config.php */ 364 printf( __( 'You can create the %s manually and paste the following text into it.' ), '<code>wp-config.php</code>' );370 printf( __( 'You can create the %s file manually and paste the following text into it.' ), '<code>wp-config.php</code>' ); 365 371 ?></p> 366 372 <textarea id="wp-config" cols="98" rows="15" class="code" readonly="readonly"><?php 367 373 foreach ( $config_file as $line ) {