diff --git a/wp-admin/install.php b/wp-admin/install.php index 0e9b87b902..558bef8487 100644 --- a/wp-admin/install.php +++ b/wp-admin/install.php @@ -9,78 +9,84 @@ /** * We are installing WordPress. * - * @since unknown + * @since 1.5.1 * @var bool */ -define('WP_INSTALLING', true); +define( 'WP_INSTALLING', true ); /** Load WordPress Bootstrap */ -require_once(dirname(dirname(__FILE__)) . '/wp-load.php'); +require_once( dirname( dirname( __FILE__ ) ) . '/wp-load.php' ); /** Load WordPress Administration Upgrade API */ -require_once(dirname(__FILE__) . '/includes/upgrade.php'); +require_once( dirname( __FILE__ ) . '/includes/upgrade.php' ); -if (isset($_GET['step'])) - $step = $_GET['step']; -else - $step = 0; +$step = isset( $_GET['step'] ) ? $_GET['step'] : 0; /** * Display install header. * - * @since unknown + * @since 2.5.0 * @package WordPress * @subpackage Installer */ function display_header() { -header( 'Content-Type: text/html; charset=utf-8' ); + header( 'Content-Type: text/html; charset=utf-8' ); ?> >
-ERROR: %s'), $error); ?>
+ERROR: %s' ), $error ); ?>
'.__('Already Installed').''.__('You appear to have already installed WordPress. To reinstall please clear your old database tables first.').'
');} +if ( is_blog_installed() ) { + display_header(); + die( '' . __( 'You appear to have already installed WordPress. To reinstall please clear your old database tables first.' ) . '