bedrock
bedrock copied to clipboard
New `WP_DEVELOPMENT_MODE` constant
Maybe relevant to know:
Wordpress 6.3 will introduce a new `WP_DEVELOPMENT_MODE` constant.
https://make.wordpress.org/core/2023/07/14/configuring-development-mode-in-6-3/
Originally posted by @huubl in https://github.com/roots/bedrock/issues/672#issuecomment-1654199593
—
It's just 1 line to change in 3 files :
- config/environments/local.php
- config/environments/development.php
=> Config::define('WP_DEVELOPMENT_MODE', env('WP_DEVELOPMENT_MODE') ?? 'all');
- .env (if necessary)
=> # WP_DEVELOPMENT_MODE=core ## core, plugin, theme, all (default) https://make.wordpress.org/core/2023/07/14/configuring-development-mode-in-6-3/
Check this PR : https://github.com/roots/bedrock/commit/184366e3c5e9af97f8f947cef85c5311633e20c6
Since this triggers behavior changes, we need to weigh that against our goal of maintaining environment parity.
From the referenced blog post:
having the
theme.json
data cache bypassed would not represent the actual behavior intended for a regular WordPress site