forked from infinum/eightshift-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wp-config-project.php
55 lines (43 loc) · 1.22 KB
/
wp-config-project.php
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
<?php
/**
* Global Environment variable
*
* Define global environment variable, and define certain
* settings based on it.
*
* @package inf_theme
*
* @since 1.0.0
*/
if ( ! defined( 'INF_ENV' ) ) {
return false;
}
// Limit revisions for better optimizations.
define( 'WP_POST_REVISIONS', 3 );
// Optimize assets in admin.
define( 'COMPRESS_CSS', true );
define( 'COMPRESS_SCRIPTS', true );
define( 'CONCATENATE_SCRIPTS', true );
define( 'ENFORCE_GZIP', true );
// Disable editing theme from admin.
define( 'DISALLOW_FILE_EDIT', true );
// Auto save interval higher to optimize admin.
define( 'AUTOSAVE_INTERVAL', 240 );
// Disable automatic updating of plugins.
define( 'AUTOMATIC_UPDATER_DISABLED', true );
// Enable debug and error loging.
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
if ( INF_ENV === 'develop' ) {
// Enable direct upload from admin.
define( 'FS_METHOD', 'direct' );
// Enable debug and error loging.
define( 'WP_DEBUG_DISPLAY', true );
} else {
// Disable plugins / themes updates from admin.
define( 'DISALLOW_FILE_MODS', true );
// Force login to admin with ssl.
define( 'FORCE_SSL_LOGIN', true );
// Enable debug and error loging.
define( 'WP_DEBUG_DISPLAY', false );
}