From a12700d1c1b38d551a26d2964f3baf5c620e014c Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 31 Oct 2008 19:24:45 +0000 Subject: [PATCH] Allow nested install. Props sivel. fixes #7997 git-svn-id: https://develop.svn.wordpress.org/trunk@9443 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/setup-config.php | 2 +- wp-load.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/setup-config.php b/wp-admin/setup-config.php index 11f73ff25f..4b0b564998 100644 --- a/wp-admin/setup-config.php +++ b/wp-admin/setup-config.php @@ -43,7 +43,7 @@ if (file_exists('../wp-config.php')) wp_die("

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 installing now.

"); // Check if wp-config.php exists above the root directory -if (file_exists('../../wp-config.php')) +if (file_exists('../../wp-config.php') && ! file_exists('../../wp-load.php')) wp_die("

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 installing now.

"); if (isset($_GET['step'])) diff --git a/wp-load.php b/wp-load.php index 423edf54b4..8e9768f8c3 100644 --- a/wp-load.php +++ b/wp-load.php @@ -26,7 +26,7 @@ if ( file_exists( ABSPATH . 'wp-config.php') ) { /** The config file resides in ABSPATH */ require_once( ABSPATH . 'wp-config.php' ); -} elseif ( file_exists( dirname(ABSPATH) . '/wp-config.php' ) ) { +} elseif ( file_exists( dirname(ABSPATH) . '/wp-config.php' ) && ! file_exists( dirname(ABSPATH) . '/wp-load.php' ) ) { /** The config file resides one level below ABSPATH */ require_once( dirname(ABSPATH) . '/wp-config.php' );