-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FEAT: new
WP_DEVELOPMENT_MODE
constant
- Loading branch information
Dareth NHANG
committed
Nov 10, 2023
1 parent
8234a04
commit 184366e
Showing
3 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
/** | ||
* Configuration overrides for WP_ENV === 'local' | ||
*/ | ||
|
||
use Roots\WPConfig\Config; | ||
use function Env\env; | ||
|
||
Config::define('SAVEQUERIES', true); | ||
Config::define('WP_DEVELOPMENT_MODE', env('WP_DEVELOPMENT_MODE') ?? 'all'); | ||
Config::define('WP_DEBUG', true); | ||
Config::define('WP_DEBUG_DISPLAY', true); | ||
Config::define('WP_DEBUG_LOG', env('WP_DEBUG_LOG') ?? true); | ||
Config::define('WP_DISABLE_FATAL_ERROR_HANDLER', true); | ||
Config::define('SCRIPT_DEBUG', true); | ||
Config::define('DISALLOW_INDEXING', true); | ||
|
||
ini_set('display_errors', '1'); | ||
|
||
// Enable plugin and theme updates and installation from the admin | ||
Config::define('DISALLOW_FILE_MODS', false); | ||
|
||
// Disable the plugin and theme file editor in the admin | ||
Config::define('DISALLOW_FILE_EDIT', false); |