Make WordPress Core


Ignore:
Timestamp:
04/14/2016 05:52:02 PM (9 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/setup-config.php

    r36872 r37207  
    2929error_reporting(0);
    3030
    31 define( 'ABSPATH', dirname( dirname( __FILE__ ) ) . '/' );
     31if ( ! defined( 'ABSPATH' ) ) {
     32    define( 'ABSPATH', dirname( dirname( __FILE__ ) ) . '/' );
     33}
    3234
    3335require( ABSPATH . 'wp-settings.php' );
Note: See TracChangeset for help on using the changeset viewer.