Changeset 7991 for trunk/wp-load.php
- Timestamp:
- 05/25/2008 03:50:15 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-load.php
r7971 r7991 1 1 <?php 2 /** 3 * Bootstrap file for setting the ABSPATH constant 4 * and loading the wp-config.php file. The wp-config.php 5 * file will then load the wp-settings.php file, which 6 * will then set up the WordPress environment. 7 * 8 * If the wp-config.php file is not found then an error 9 * will be displayed asking the visitor to set up the 10 * wp-config.php file. 11 * 12 * Also made to work in the wp-admin/ folder, because it 13 * will look in the parent directory if the file is not 14 * found in the current directory. 15 * 16 * @package WordPress 17 */ 2 18 3 / / Define ABSPATH as this files directory19 /** Define ABSPATH as this files directory */ 4 20 define( 'ABSPATH', dirname(__FILE__) . '/' ); 5 21 6 22 if ( file_exists( ABSPATH . 'wp-config.php') ) { 7 23 8 / / The config file resides in ABSPATH24 /** The config file resides in ABSPATH */ 9 25 require_once( ABSPATH . 'wp-config.php' ); 10 26 11 27 } elseif ( file_exists( dirname(ABSPATH) . '/wp-config.php' ) ) { 12 28 13 / / The config file resides one level below ABSPATH29 /** The config file resides one level below ABSPATH */ 14 30 require_once( dirname(ABSPATH) . '/wp-config.php' ); 15 31
Note: See TracChangeset
for help on using the changeset viewer.