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.

git-svn-id: https://develop.svn.wordpress.org/trunk@37207 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2016-04-14 17:52:02 +00:00
parent 1694407e0d
commit 75fe71a13f
4 changed files with 14 additions and 4 deletions

View File

@@ -8,7 +8,10 @@
error_reporting(0);
/** Set ABSPATH for execution */
define( 'ABSPATH', dirname(dirname(__FILE__)) . '/' );
if ( ! defined( 'ABSPATH' ) ) {
define( 'ABSPATH', dirname( dirname( __FILE__ ) ) . '/' );
}
define( 'WPINC', 'wp-includes' );
$load = $_GET['load'];