Bootstrap/Load: Allow for ABSPATH to be defined outside of wp-load.php, e.g. in a script loaded via auto_prepend_file.
Props barry. Fixes #26592. Built from https://develop.svn.wordpress.org/trunk@37207 git-svn-id: http://core.svn.wordpress.org/trunk@37173 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -28,7 +28,9 @@ define('WP_SETUP_CONFIG', true);
|
||||
*/
|
||||
error_reporting(0);
|
||||
|
||||
define( 'ABSPATH', dirname( dirname( __FILE__ ) ) . '/' );
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
define( 'ABSPATH', dirname( dirname( __FILE__ ) ) . '/' );
|
||||
}
|
||||
|
||||
require( ABSPATH . 'wp-settings.php' );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user