roots / bedrock

WordPress boilerplate with Composer, easier configuration, and an improved folder structure
https://roots.io/bedrock/
MIT License
6.15k stars 1.16k forks source link

New `WP_DEVELOPMENT_MODE` constant #695

Open DSGND opened 10 months ago

DSGND commented 10 months ago
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::define('WP_DEVELOPMENT_MODE', env('WP_DEVELOPMENT_MODE') ?? 'all');

=> # WP_DEVELOPMENT_MODE=core ## core, plugin, theme, all (default) https://make.wordpress.org/core/2023/07/14/configuring-development-mode-in-6-3/

DSGND commented 10 months ago

Check this PR : https://github.com/roots/bedrock/commit/184366e3c5e9af97f8f947cef85c5311633e20c6

QWp6t commented 10 months ago

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