diff --git a/wp-includes/default-constants.php b/wp-includes/default-constants.php index c7a37cbfbe..77f76319b8 100644 --- a/wp-includes/default-constants.php +++ b/wp-includes/default-constants.php @@ -74,7 +74,11 @@ function wp_initial_constants() { // Add define( 'WP_DEBUG', true ); to wp-config.php to enable display of notices during development. if ( ! defined( 'WP_DEBUG' ) ) { - define( 'WP_DEBUG', false ); + if ( 'development' === wp_get_environment_type() ) { + define( 'WP_DEBUG', true ); + } else { + define( 'WP_DEBUG', false ); + } } // Add define( 'WP_DEBUG_DISPLAY', null ); to wp-config.php to use the globally configured setting diff --git a/wp-includes/version.php b/wp-includes/version.php index 16a03f7c73..99dc3bbc97 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.5-alpha-48371'; +$wp_version = '5.5-alpha-48372'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.