-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwp-config.php
More file actions
70 lines (62 loc) · 1.94 KB
/
wp-config.php
File metadata and controls
70 lines (62 loc) · 1.94 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
<?php
/**
* wp-config.php for Delicious Media projects.
*
* Make changes which should apply to all environments here.
* Make changes which should apply to individual environments in the local-config.php.
*
* @package dm-wordpress-layout
*/
/**
* Always load the database credentials & salts from a seperate file.
*/
if ( ! file_exists( __DIR__ . '/local-config.php' ) ) {
die( 'local-config.php is missing.' );
}
include __DIR__ . '/local-config.php';
/**
* Prevent errors when using WP CLI
*/
if ( ! isset( $_SERVER['HTTP_HOST'] ) ) {
$_SERVER['HTTP_HOST'] = '';
}
if ( ! isset( $_SERVER['SERVER_NAME'] ) ) {
$_SERVER['SERVER_NAME'] = '';
}
/**
* Setup URLS and the custom content directory.
*/
$dm_protocol = ( ! empty( $_SERVER['HTTPS'] ) && 'off' != $_SERVER['HTTPS'] ) ? 'https://' : 'http://';
define( 'WP_SITEURL', $dm_protocol . $_SERVER['SERVER_NAME'] . '/wp' );
define( 'WP_HOME', $dm_protocol . $_SERVER['SERVER_NAME'] );
define( 'WP_CONTENT_DIR', __DIR__ . '/content' );
define( 'WP_CONTENT_URL', $dm_protocol . $_SERVER['HTTP_HOST'] . '/content' );
/**
* Other settings.
*/
define( 'DB_CHARSET', 'utf8' );
define( 'DB_COLLATE', '' );
define( 'WPLANG', '' );
/**
* Set some defaults, which we may override in local-config.php
*/
defined( 'WP_POST_REVISIONS' ) || define( 'WP_POST_REVISIONS', 30 );
/**
* If we're in a development environment, enable debugging.
* If not, hide errors and disable file/plugin modifications.
*/
if ( 'DEV' === DM_ENVIRONMENT ) {
defined( 'SAVEQUERIES' ) || define( 'SAVEQUERIES', false );
defined( 'WP_DEBUG' ) || define( 'WP_DEBUG', false );
} else {
defined( 'WP_DEBUG_DISPLAY' ) || define( 'WP_DEBUG_DISPLAY', false );
defined( 'DISALLOW_FILE_EDIT' ) || define( 'DISALLOW_FILE_EDIT', true );
defined( 'DISALLOW_FILE_MODS' ) || define( 'DISALLOW_FILE_MODS', true );
}
/**
* Load WordPress.
*/
if ( ! defined( 'ABSPATH' ) ) {
define( 'ABSPATH', __DIR__ . '/wp/' );
}
require_once ABSPATH . 'wp-settings.php';