From baf85f84287fda34b988c172fe5e2a64cf0013d4 Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Fri, 3 Aug 2007 01:08:59 +0000 Subject: [PATCH] More streamlined install process. Obeys WP_SITEURL if defined. fixes #4687 (props JeremyVisser, Nazgul), see #4685 git-svn-id: https://develop.svn.wordpress.org/trunk@5844 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/install.php | 41 ++++++++++++++++++----------------------- wp-settings.php | 14 +++++++++----- 2 files changed, 27 insertions(+), 28 deletions(-) diff --git a/wp-admin/install.php b/wp-admin/install.php index 47875593db..de64f095bb 100644 --- a/wp-admin/install.php +++ b/wp-admin/install.php @@ -32,15 +32,14 @@ if ( is_blog_installed() ) die('

'.__('Already Installed').'

'.__('You switch($step) { case 0: + case 1: // in case people are directly linking to this ?> -

ReadMe documentation at your leisure.'), '../readme.html'); ?>

-

- -

-

+

Welcome

+

ReadMe documentation at your leisure. Otherwise, just fill in the information below and you\'ll be on your way to using the most extendable and powerful personal publishing platform in the world.'), '../readme.html'); ?>

+ + +

+

@@ -54,11 +53,11 @@ switch($step) { - +
-

-

+

+

ERROR: please type your e-mail address")); + // TODO: poka-yoke + die(__("ERROR: you must provide an e-mail address")); } else if (!is_email($admin_email)) { - die(__("ERROR: the e-mail address isn't correct")); + // TODO: poka-yoke + die(__('ERROR: that isn\'t a valid e-mail address. E-mail addresses look like: username@example.com')); } -?> -

-

- - - -

+

-

log in with the username "admin" and password "%2$s".'), '../wp-login.php', $password); ?>

-

Note that password carefully! It is a random password that was generated just for you. If you lose it, you will have to delete the tables from the database yourself, and re-install WordPress. So to review:'); ?>

+

log in with the username "admin" and password "%2$s".'), '../wp-login.php', $password); ?>

+

Note that password carefully! It is a random password that was generated just for you.'); ?>

@@ -98,7 +93,7 @@ switch($step) {
wp-login.php
-

+

install.php.', $link ) ); + $link = preg_replace('|/[^/]+?$|', '/', $_SERVER['PHP_SELF']) . 'wp-admin/install.php'; + require_once(ABSPATH . WPINC . '/kses.php'); + require_once(ABSPATH . WPINC . '/pluggable.php'); + wp_redirect($link); + die(); // have to die here ~ Mark } require (ABSPATH . WPINC . '/formatting.php');