]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-load.php
Wordpress 2.7.1
[autoinstalls/wordpress.git] / wp-load.php
index 423edf54b4d1b81df0b4cf56ae9bf5176a163728..8e9768f8c386a2bc324a97b7d6d98a0f0af2381c 100644 (file)
@@ -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' );