From 184366e3c5e9af97f8f947cef85c5311633e20c6 Mon Sep 17 00:00:00 2001 From: Dareth NHANG Date: Fri, 10 Nov 2023 15:10:36 +0100 Subject: [PATCH] =?UTF-8?q?FEAT:=20new=C2=A0`WP=5FDEVELOPMENT=5FMODE`?= =?UTF-8?q?=C2=A0constant?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.example | 5 +++++ config/environments/development.php | 1 + config/environments/local.php | 24 ++++++++++++++++++++++++ 3 files changed, 30 insertions(+) create mode 100644 config/environments/local.php diff --git a/.env.example b/.env.example index 88e82b318f..89aec3badf 100644 --- a/.env.example +++ b/.env.example @@ -17,6 +17,11 @@ WP_SITEURL="${WP_HOME}/wp" # Specify optional debug.log path # WP_DEBUG_LOG='/path/to/debug.log' +# Configuring development mode +# Values: core, plugin, theme, all (default) +# See: https://make.wordpress.org/core/2023/07/14/configuring-development-mode-in-6-3/ +# WP_DEVELOPMENT_MODE=core + ## WP OPTIONS WP_CACHE=true WP_POST_REVISIONS=5 diff --git a/config/environments/development.php b/config/environments/development.php index 8706398731..0522ffa371 100644 --- a/config/environments/development.php +++ b/config/environments/development.php @@ -7,6 +7,7 @@ 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); diff --git a/config/environments/local.php b/config/environments/local.php new file mode 100644 index 0000000000..7edf29ab1c --- /dev/null +++ b/config/environments/local.php @@ -0,0 +1,24 @@ +