Commit dc39d9be9f for wordpress.org
commit dc39d9be9f97ab53d97f9040caab2bd458d25a29
Author: peterwilsoncc <peterwilsoncc@git.wordpress.org>
Date: Mon Oct 5 21:44:50 2026 +0000
Bootstrap/Load: Enable `WP_DEBUG` by default on local environments.
Modify the default value of `WP_DEBUG` to `true` when the environment type is defined as `local`. This matches the default value for the development environment type.
The debug defaults for each environment type becomes:
* local: on by default
* development: on by default
* staging: off by default
* production: off by default
Developed in https://github.com/WordPress/wordpress-develop/pull/13988
Props peterwilsoncc, mukesh27, westonruter.
Fixes #66243.
Built from https://develop.svn.wordpress.org/trunk@64115
git-svn-id: http://core.svn.wordpress.org/trunk@63271 1a063a9b-81f0-0310-95a4-ce76da25c4cd
diff --git a/wp-includes/default-constants.php b/wp-includes/default-constants.php
index acfc878fb7..54d77d0e98 100644
--- a/wp-includes/default-constants.php
+++ b/wp-includes/default-constants.php
@@ -90,7 +90,7 @@ function wp_initial_constants() {
// Add define( 'WP_DEBUG', true ); to wp-config.php to enable display of notices during development.
if ( ! defined( 'WP_DEBUG' ) ) {
- if ( wp_get_development_mode() || 'development' === wp_get_environment_type() ) {
+ if ( wp_get_development_mode() || 'development' === wp_get_environment_type() || 'local' === wp_get_environment_type() ) {
define( 'WP_DEBUG', true );
} else {
define( 'WP_DEBUG', false );
diff --git a/wp-includes/version.php b/wp-includes/version.php
index fffce4bd67..dfac97bf32 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
-$wp_version = '7.2-alpha-64114';
+$wp_version = '7.2-alpha-64115';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.