Changeset 47198 for trunk/src/wp-load.php
- Timestamp:
- 02/06/2020 06:31:22 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-load.php
r47122 r47198 19 19 /** Define ABSPATH as this file's directory */ 20 20 if ( ! defined( 'ABSPATH' ) ) { 21 define( 'ABSPATH', dirname( __FILE__ ). '/' );21 define( 'ABSPATH', __DIR__ . '/' ); 22 22 } 23 23 … … 35 35 36 36 /** The config file resides in ABSPATH */ 37 require_once ( ABSPATH . 'wp-config.php' );37 require_once ABSPATH . 'wp-config.php'; 38 38 39 39 } elseif ( @file_exists( dirname( ABSPATH ) . '/wp-config.php' ) && ! @file_exists( dirname( ABSPATH ) . '/wp-settings.php' ) ) { 40 40 41 41 /** The config file resides one level above ABSPATH but is not part of another installation */ 42 require_once ( dirname( ABSPATH ) . '/wp-config.php' );42 require_once dirname( ABSPATH ) . '/wp-config.php'; 43 43 44 44 } else { … … 47 47 48 48 define( 'WPINC', 'wp-includes' ); 49 require_once ( ABSPATH . WPINC . '/load.php' );49 require_once ABSPATH . WPINC . '/load.php'; 50 50 51 51 // Standardize $_SERVER variables across setups. 52 52 wp_fix_server_vars(); 53 53 54 require_once ( ABSPATH . WPINC . '/functions.php' );54 require_once ABSPATH . WPINC . '/functions.php'; 55 55 56 56 $path = wp_guess_url() . '/wp-admin/setup-config.php'; … … 67 67 68 68 define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' ); 69 require_once ( ABSPATH . WPINC . '/version.php' );69 require_once ABSPATH . WPINC . '/version.php'; 70 70 71 71 wp_check_php_mysql_versions();
Note: See TracChangeset
for help on using the changeset viewer.