Make WordPress Core


Ignore:
Timestamp:
04/14/2016 05:52:02 PM (8 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/load-scripts.php

    r36312 r37207  
    99
    1010/** Set ABSPATH for execution */
    11 define( 'ABSPATH', dirname(dirname(__FILE__)) . '/' );
     11if ( ! defined( 'ABSPATH' ) ) {
     12    define( 'ABSPATH', dirname( dirname( __FILE__ ) ) . '/' );
     13}
     14
    1215define( 'WPINC', 'wp-includes' );
    1316
Note: See TracChangeset for help on using the changeset viewer.