Make WordPress Core

Changeset 9443


Ignore:
Timestamp:
10/31/2008 07:24:45 PM (18 years ago)
Author:
ryan
Message:

Allow nested install. Props sivel. fixes #7997

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/setup-config.php

    r9146 r9443  
    4444
    4545// Check if wp-config.php exists above the root directory
    46 if (file_exists('../../wp-config.php'))
     46if (file_exists('../../wp-config.php') && ! file_exists('../../wp-load.php'))
    4747    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>");
    4848
  • trunk/wp-load.php

    r8168 r9443  
    2727    require_once( ABSPATH . 'wp-config.php' );
    2828
    29 } elseif ( file_exists( dirname(ABSPATH) . '/wp-config.php' ) ) {
     29} elseif ( file_exists( dirname(ABSPATH) . '/wp-config.php' ) && ! file_exists( dirname(ABSPATH) . '/wp-load.php' ) ) {
    3030
    3131    /** The config file resides one level below ABSPATH */
Note: See TracChangeset for help on using the changeset viewer.