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,8 +74,12 @@ 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 ( '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
|
||||
// for 'display_errors' and not force errors to be displayed. Use false to force 'display_errors' off.
|
||||
|
Loading…
Reference in New Issue
Block a user