IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
|
| 79 | 79 | */ |
| 80 | 80 | define('WP_DEBUG', false); |
| 81 | 81 | |
| 82 | | /* That's all, stop editing! Happy blogging. */ |
| | 82 | /* |
| | 83 | * That's all, stop editing! Happy blogging. |
| | 84 | * |
| | 85 | * NOTHING PLACED BELOW THIS LINE WILL HAVE AN EFFECT ON YOUR SITE. |
| | 86 | * |
| | 87 | */ |
| 83 | 88 | |
| 84 | 89 | /** Absolute path to the WordPress directory. */ |
| 85 | 90 | if ( !defined('ABSPATH') ) |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
|
| 23 | 23 | |
| 24 | 24 | error_reporting( E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR ); |
| 25 | 25 | |
| | 26 | $_wp_config_file = ''; |
| 26 | 27 | /* |
| 27 | 28 | * If wp-config.php exists in the WordPress root, or if it exists in the root and wp-settings.php |
| 28 | 29 | * doesn't, load wp-config.php. The secondary check for wp-settings.php has the added benefit |
| … |
… |
|
| 31 | 32 | * |
| 32 | 33 | * If neither set of conditions is true, initiate loading the setup process. |
| 33 | 34 | */ |
| 34 | | if ( file_exists( ABSPATH . 'wp-config.php') ) { |
| | 35 | if ( file_exists( ABSPATH . 'wp-config.php' ) ) { |
| 35 | 36 | |
| 36 | 37 | /** The config file resides in ABSPATH */ |
| 37 | | require_once( ABSPATH . 'wp-config.php' ); |
| | 38 | $_wp_config_file = ABSPATH . 'wp-config.php'; |
| 38 | 39 | |
| 39 | 40 | } elseif ( @file_exists( dirname( ABSPATH ) . '/wp-config.php' ) && ! @file_exists( dirname( ABSPATH ) . '/wp-settings.php' ) ) { |
| 40 | 41 | |
| 41 | 42 | /** The config file resides one level above ABSPATH but is not part of another install */ |
| 42 | | require_once( dirname( ABSPATH ) . '/wp-config.php' ); |
| | 43 | $_wp_config_file = dirname( ABSPATH ) . '/wp-config.php'; |
| | 44 | |
| | 45 | } |
| | 46 | |
| | 47 | if ( '' !== $_wp_config_file ) { |
| | 48 | |
| | 49 | define( 'WP_LOAD_LOADED', true ); |
| | 50 | require_once( $_wp_config_file ); |
| 43 | 51 | |
| 44 | 52 | } else { |
| 45 | 53 | |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
|
| 102 | 102 | require( ABSPATH . WPINC . '/pomo/mo.php' ); |
| 103 | 103 | require( ABSPATH . WPINC . '/class-phpass.php' ); |
| 104 | 104 | |
| | 105 | /** |
| | 106 | * Prove we're loaded correctly. Executed soon-after functions.php is loaded, which is the earliest we can run _doing_it_wrong(). |
| | 107 | */ |
| | 108 | if ( ! defined( 'WP_LOAD_LOADED' ) || true !== WP_LOAD_LOADED ) { |
| | 109 | _doing_it_wrong( 'wp-settings.php', __( 'Do not load wp-settings.php or wp-config.php directly.' ) ); // @todo: insert WordPress version number |
| | 110 | } |
| | 111 | |
| 105 | 112 | // Include the wpdb class and, if present, a db.php database drop-in. |
| 106 | 113 | global $wpdb; |
| 107 | 114 | require_wp_db(); |