-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathwp-config.php
More file actions
executable file
·93 lines (69 loc) · 2.45 KB
/
wp-config.php
File metadata and controls
executable file
·93 lines (69 loc) · 2.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<?php
/*
|---------------------------------------------------------------
| Blog address (URL)
|---------------------------------------------------------------
|
| Overrides the wp_options table value for home but does not change it permanently.
| IMPORTANT: Set WP_HOME to the full path including the 'http://' and no trailing slash.
|
*/
define( 'WP_HOME', 'http://example.com' );
define( 'WP_SITEURL', WP_HOME . '/wordpress' );
/*
|---------------------------------------------------------------
| Path to the root of the aplication.
|---------------------------------------------------------------
|
*/
define('APP_ROOT', dirname(__FILE__));
/*
|---------------------------------------------------------------
| Moving wp-content directory.
|---------------------------------------------------------------
*/
define( 'WP_CONTENT_DIR', APP_ROOT . '/app/content' );
define( 'WP_CONTENT_URL', WP_HOME . '/app/content' );
/*
|---------------------------------------------------------------
| Change default theme
|---------------------------------------------------------------
*/
if ( ! defined('WP_DEFAULT_THEME') )
define( 'WP_DEFAULT_THEME', 'base-theme' );
/*
|---------------------------------------------------------------
| Absolute path to the WordPress directory.
|---------------------------------------------------------------
*/
if ( ! defined('ABSPATH') )
define('ABSPATH', dirname(__FILE__) . '/wordpress/');
/*
|---------------------------------------------------------------
| Application environment
|---------------------------------------------------------------
|
| You can load different configurations depending on your current environment.
|
*/
define('ENVIRONMENT', getenv('APP_ENV'));
/*
|---------------------------------------------------------------
| Load WordPress configuration file.
|---------------------------------------------------------------
*/
if ( defined('ENVIRONMENT') ) {
if ( file_exists(APP_ROOT . '/app/config/'. ENVIRONMENT . '/wordpress.php') ) {
require_once APP_ROOT . '/app/config/'. ENVIRONMENT . '/wordpress.php';
} else {
require_once APP_ROOT . '/app/config/wordpress.php';
}
} else {
require_once APP_ROOT . '/app/config/wordpress.php';
}
/*
|--------------------------------------------------------------------------
| Register The Composer Auto Loader
|--------------------------------------------------------------------------
*/
require APP_ROOT . '/vendor/autoload.php';