forked from markjaquith/WordPress-Skeleton
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwp-config.php
More file actions
90 lines (79 loc) · 3.35 KB
/
wp-config.php
File metadata and controls
90 lines (79 loc) · 3.35 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
<?php
// ===================================================
// Load database info and local development parameters
// ===================================================
include_once dirname( __FILE__ ) . '/get-envinronment.php';
if ( !defined( 'DEV_ENV' ) ) {
die( 'DEV_ENV not defined' );
}
if ( Envinronments::get_current_env( ) == Envinronments::local ) {
define( 'WP_LOCAL_DEV', true );
include (dirname( __FILE__ ) . '/local-config.php');
} elseif ( Envinronments::get_current_env( ) == Envinronments::staging ) {
define( 'WP_LOCAL_DEV', false );
define( 'DB_NAME', 'remediabasewp' );
define( 'DB_USER', 'remediabasewp' );
define( 'DB_PASSWORD', 'remediabasewp' );
define( 'DB_HOST', 'localhost' );
// Probably 'localhost'
// ===========
// Hide errors
// ===========
define( 'WP_DEBUG', false );
define( 'WP_DEBUG_DISPLAY', false );
/**
* Dove mettiamo Wordpress? (in produzione/staging probabilmente si trova
* nella root del sito)
*/
define( 'WP_SITEURL', 'http://' . $_SERVER['SERVER_NAME'] . '/wp' );
define( 'WP_HOME', 'http://' . $_SERVER['SERVER_NAME'] );
// ========================
// Custom Content Directory
// ========================
define( 'WP_CONTENT_DIR', dirname( __FILE__ ) . '/content' );
define( 'WP_CONTENT_URL', 'http://' . $_SERVER['SERVER_NAME'] . '/content' );
}
// ================================================
// You almost certainly do not want to change these
// ================================================
define( 'DB_CHARSET', 'utf8' );
define( 'DB_COLLATE', '' );
// ==============================================================
// Salts, for security
// Grab these from: https://api.wordpress.org/secret-key/1.1/salt
// ==============================================================
define( 'AUTH_KEY', 'put your unique phrase here' );
define( 'SECURE_AUTH_KEY', 'put your unique phrase here' );
define( 'LOGGED_IN_KEY', 'put your unique phrase here' );
define( 'NONCE_KEY', 'put your unique phrase here' );
define( 'AUTH_SALT', 'put your unique phrase here' );
define( 'SECURE_AUTH_SALT', 'put your unique phrase here' );
define( 'LOGGED_IN_SALT', 'put your unique phrase here' );
define( 'NONCE_SALT', 'put your unique phrase here' );
// ==============================================================
// Table prefix
// Change this if you have multiple installs in the same database
// ==============================================================
$table_prefix = 'wp_';
// ================================
// Language
// Leave blank for American English
// ================================
define( 'WPLANG', '' );
// =================================================================
// Debug mode
// Debugging? Enable these. Can also enable them in local-config.php
// =================================================================
// define( 'SAVEQUERIES', true );
// define( 'WP_DEBUG', true );
// ======================================
// Load a Memcached config if we have one
// ======================================
// if ( file_exists( dirname( __FILE__ ) . '/memcached.php' ) )
// $memcached_servers = include( dirname( __FILE__ ) . '/memcached.php' );
// ===================
// Bootstrap WordPress
// ===================
if ( !defined( 'ABSPATH' ) )
define( 'ABSPATH', dirname( __FILE__ ) . '/wp/' );
require_once (ABSPATH . 'wp-settings.php');