bedrock icon indicating copy to clipboard operation
bedrock copied to clipboard

New `WP_DEVELOPMENT_MODE` constant

Open DSGND opened this issue 1 year ago • 2 comments

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/

DSGND avatar Nov 10 '23 13:11 DSGND

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

DSGND avatar Nov 10 '23 14:11 DSGND

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

QWp6t avatar Nov 10 '23 15:11 QWp6t