Skip to content

Commit 069b360

Browse files
committed
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 #13988 Props peterwilsoncc, mukesh27, westonruter. Fixes #66243. git-svn-id: https://develop.svn.wordpress.org/trunk@64115 602fd350-edb4-49c9-b593-d223f7449a82
1 parent aee05d9 commit 069b360

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/wp-includes/default-constants.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ function wp_initial_constants() {
9090

9191
// Add define( 'WP_DEBUG', true ); to wp-config.php to enable display of notices during development.
9292
if ( ! defined( 'WP_DEBUG' ) ) {
93-
if ( wp_get_development_mode() || 'development' === wp_get_environment_type() ) {
93+
if ( wp_get_development_mode() || 'development' === wp_get_environment_type() || 'local' === wp_get_environment_type() ) {
9494
define( 'WP_DEBUG', true );
9595
} else {
9696
define( 'WP_DEBUG', false );

0 commit comments

Comments
 (0)