Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New WP_DEVELOPMENT_MODE constant #695

Open
DSGND opened this issue Nov 10, 2023 · 2 comments
Open

New WP_DEVELOPMENT_MODE constant #695

DSGND opened this issue Nov 10, 2023 · 2 comments

Comments

@DSGND
Copy link
Contributor

DSGND commented Nov 10, 2023

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 #672 (comment)

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
Copy link
Contributor Author

DSGND commented Nov 10, 2023

Check this PR : 184366e

@QWp6t
Copy link
Member

QWp6t commented Nov 10, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants