Bootstrap/Load: Set `WP_DEBUG` to true by default on `development` environments.

Props johnbillion, kraftbj, Clorith, joostdevalk, dlh.
Fixes #33161.
Built from https://develop.svn.wordpress.org/trunk@48372


git-svn-id: http://core.svn.wordpress.org/trunk@48141 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2020-07-07 12:57:04 +00:00
parent 4fbd235b25
commit 3ba7789829
2 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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.