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. */ |
83 | | |
84 | 82 | /** Absolute path to the WordPress directory. */ |
85 | 83 | if ( !defined('ABSPATH') ) |
86 | 84 | define('ABSPATH', dirname(__FILE__) . '/'); |
87 | | |
88 | | /** Sets up WordPress vars and included files. */ |
89 | | require_once(ABSPATH . 'wp-settings.php'); |
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 | | * doesn't, load wp-config.php. The secondary check for wp-settings.php has the added benefit |
| 29 | * doesn't, set the path to wp-config.php. The secondary check for wp-settings.php has the added benefit |
29 | 30 | * of avoiding cases where the current directory is a nested installation, e.g. / is WordPress(a) |
30 | 31 | * and /blog/ is WordPress(b). |
31 | | * |
32 | | * If neither set of conditions is true, initiate loading the setup process. |
33 | 32 | */ |
34 | 33 | if ( file_exists( ABSPATH . 'wp-config.php') ) { |
35 | 34 | |
36 | | /** The config file resides in ABSPATH */ |
37 | | require_once( ABSPATH . 'wp-config.php' ); |
| 35 | $_wp_config_file = ABSPATH . 'wp-config.php'; |
38 | 36 | |
39 | 37 | } elseif ( @file_exists( dirname( ABSPATH ) . '/wp-config.php' ) && ! @file_exists( dirname( ABSPATH ) . '/wp-settings.php' ) ) { |
40 | 38 | |
41 | 39 | /** The config file resides one level above ABSPATH but is not part of another install */ |
42 | | require_once( dirname( ABSPATH ) . '/wp-config.php' ); |
| 40 | $_wp_config_file = dirname( ABSPATH ) . '/wp-config.php'; |
| 41 | |
| 42 | } |
| 43 | |
| 44 | /* |
| 45 | * If the path to wp-config.php is set, load it and then load wp-settings.php. |
| 46 | * |
| 47 | * Otherwise, initiate loading the setup process. |
| 48 | */ |
| 49 | if ( '' !== $_wp_config_file ) { |
| 50 | |
| 51 | /** The config file resides in ABSPATH */ |
| 52 | require_once( $_wp_config_file ); |
| 53 | |
| 54 | if ( ! defined( 'WPINC' ) ) { |
| 55 | /** Sets up WordPress vars and included files. */ |
| 56 | require_once(ABSPATH . 'wp-settings.php'); |
| 57 | } |
43 | 58 | |
44 | 59 | } else { |
45 | 60 | |