Changeset 25385 for trunk/src/wp-load.php
- Timestamp:
- 09/12/2013 05:12:51 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-load.php
r25001 r25385 38 38 // A config file doesn't exist 39 39 40 // Set a path for the link to the installer41 if ( strpos($_SERVER['PHP_SELF'], 'wp-admin') !== false )42 $path = 'setup-config.php';43 else44 $path = 'wp-admin/setup-config.php';45 46 40 define( 'WPINC', 'wp-includes' ); 47 41 define( 'WP_CONTENT_DIR', ABSPATH . 'wp-content' ); … … 52 46 wp_load_translations_early(); 53 47 48 // Standardize $_SERVER variables across setups. 49 wp_fix_server_vars(); 50 54 51 require_once( ABSPATH . WPINC . '/functions.php' ); 52 53 // Set a path for the link to the installer 54 if ( strpos( $_SERVER['PHP_SELF'], 'wp-admin' ) !== false ) { 55 $path = 'setup-config.php'; 56 } elseif ( file_exists( dirname( $_SERVER['SCRIPT_FILENAME'] ) . '/wp-admin/setup-config.php' ) ) { 57 $path = 'wp-admin/setup-config.php'; 58 } else { 59 // WordPress files are in a sub directory, and the user is hitting the index.php in the parent directory 60 $path = str_replace( dirname( $_SERVER['SCRIPT_FILENAME'] ) . '/', '', dirname( __FILE__ ) . '/wp-admin/setup-config.php' ); 61 } 55 62 56 63 // Die with an error message
Note: See TracChangeset
for help on using the changeset viewer.