diff --git wp-load.php wp-load.php
index 9021ceb..9861d0c 100644
|
|
if ( file_exists( ABSPATH . 'wp-config.php') ) { |
28 | 28 | /** The config file resides in ABSPATH */ |
29 | 29 | require_once( ABSPATH . 'wp-config.php' ); |
30 | 30 | |
| 31 | /* |
| 32 | * Only get wp-config.php from the parent directory |
| 33 | * if wp-settings.php is not also in the parent directory. |
| 34 | * Avoids cases where the current directory is a nested |
| 35 | * installation, e.g. / is WordPressA and /blog/ is WordPressB. |
| 36 | */ |
31 | 37 | } elseif ( file_exists( dirname(ABSPATH) . '/wp-config.php' ) && ! file_exists( dirname(ABSPATH) . '/wp-settings.php' ) ) { |
32 | 38 | |
33 | 39 | /** The config file resides one level above ABSPATH but is not part of another install */ |