mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-04 20:54:29 +00:00
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:
@@ -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'];
|
||||
|
||||
Reference in New Issue
Block a user