WordPress.org

Make WordPress Core

Ticket #18180: 18180.diff

File 18180.diff, 1.9 KB (added by CoenJacobs, 3 years ago)
  • wp-admin/setup-config.php

     
    5050require_once(ABSPATH . WPINC . '/class-wp-error.php'); 
    5151 
    5252if (!file_exists(ABSPATH . 'wp-config-sample.php')) 
    53         wp_die('Sorry, I need a wp-config-sample.php file to work from. Please re-upload this file from your WordPress installation.'); 
     53        wp_die( __( 'Sorry, I need a wp-config-sample.php file to work from. Please re-upload this file from your WordPress installation.' ) ); 
    5454 
    5555$configFile = file(ABSPATH . 'wp-config-sample.php'); 
    5656 
    5757// Check if wp-config.php has been created 
    5858if (file_exists(ABSPATH . 'wp-config.php')) 
    59         wp_die("<p>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='install.php'>installing now</a>.</p>"); 
     59        wp_die( __( "<p>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='install.php'>installing now</a>.</p>" ) ); 
    6060 
    6161// Check if wp-config.php exists above the root directory but is not part of another install 
    6262if (file_exists(ABSPATH . '../wp-config.php') && ! file_exists(ABSPATH . '../wp-settings.php')) 
    63         wp_die("<p>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='install.php'>installing now</a>.</p>"); 
     63        wp_die( __( "<p>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='install.php'>installing now</a>.</p>" ) ); 
    6464 
    6565if (isset($_GET['step'])) 
    6666        $step = $_GET['step'];