mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-07 09:49:04 +00:00
Setup/Config: some dirname( ABSPATH ) file lookups should have errors suppressed due to possibility of open_basedir restrictions on hosts.
Props chriscct7, misterunknown. Fixes #29680. git-svn-id: https://develop.svn.wordpress.org/trunk@34867 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
+2
-2
@@ -36,10 +36,10 @@ 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' ) && ! file_exists( dirname(ABSPATH) . '/wp-settings.php' ) ) {
|
||||
} elseif ( @file_exists( dirname( ABSPATH ) . '/wp-config.php' ) && ! @file_exists( dirname( ABSPATH ) . '/wp-settings.php' ) ) {
|
||||
|
||||
/** The config file resides one level above ABSPATH but is not part of another install */
|
||||
require_once( dirname(ABSPATH) . '/wp-config.php' );
|
||||
require_once( dirname( ABSPATH ) . '/wp-config.php' );
|
||||
|
||||
} else {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user