Make WordPress Core

Ticket #42161: 42161.patch

File 42161.patch, 1.7 KB (added by ramiy, 7 years ago)
  • wp-admin/setup-config.php

     
    5151// Check if wp-config.php has been created
    5252if ( file_exists( ABSPATH . 'wp-config.php' ) )
    5353        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>',
    5657                        'install.php'
    5758                ) . '</p>'
    5859        );
     
    6061// Check if wp-config.php exists above the root directory but is not part of another installation
    6162if ( @file_exists( ABSPATH . '../wp-config.php' ) && ! @file_exists( ABSPATH . '../wp-settings.php' ) ) {
    6263        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>',
    6567                        'install.php'
    6668                ) . '</p>'
    6769        );