Bootstrap/Load: Set WP_DEBUG
to true by default on development
environments.
Props johnbillion, kraftbj, Clorith, joostdevalk, dlh. Fixes #33161. git-svn-id: https://develop.svn.wordpress.org/trunk@48372 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f3d3e1df31
commit
30201a396f
@ -74,7 +74,11 @@ function wp_initial_constants() {
|
|||||||
|
|
||||||
// Add define( 'WP_DEBUG', true ); to wp-config.php to enable display of notices during development.
|
// Add define( 'WP_DEBUG', true ); to wp-config.php to enable display of notices during development.
|
||||||
if ( ! defined( 'WP_DEBUG' ) ) {
|
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
|
// Add define( 'WP_DEBUG_DISPLAY', null ); to wp-config.php to use the globally configured setting
|
||||||
|
Loading…
Reference in New Issue
Block a user