diff --git a/wp-admin/install.php b/wp-admin/install.php
index cab58ca529..b30c12cdd6 100644
--- a/wp-admin/install.php
+++ b/wp-admin/install.php
@@ -2,9 +2,12 @@
$_wp_installing = 1;
if (!file_exists('../wp-config.php'))
die("There doesn't seem to be a wp-config.php
file. I need this before we can get started. Need more help? We got it. You can create a wp-config.php
file through a web interface, but this doesn't work for all server setups. The safest way is to manually create the file.");
+
require_once('../wp-config.php');
require('upgrade-functions.php');
+$guessurl = str_replace('/wp-admin/install.php?step=2', '', 'http://' . $HTTP_HOST . $REQUEST_URI);
+
if (isset($_GET['step']))
$step = $_GET['step'];
else
@@ -14,72 +17,109 @@ else
You appear to already have WordPress installed. If you would like to reinstall please clear your old database files first.
')); +if ($installed) die(__('You appear to have already installed WordPress. To reinstall please clear your old database tables first.