diff --git a/wp-admin/includes/class-wp-debug-data.php b/wp-admin/includes/class-wp-debug-data.php index 91c6b837c1..3bc30ea212 100644 --- a/wp-admin/includes/class-wp-debug-data.php +++ b/wp-admin/includes/class-wp-debug-data.php @@ -234,13 +234,11 @@ class WP_Debug_Data { $compress_css_debug = 'undefined'; } - // Check WP_LOCAL_DEV. - if ( defined( 'WP_LOCAL_DEV' ) ) { - $wp_local_dev = WP_LOCAL_DEV ? __( 'Enabled' ) : __( 'Disabled' ); - $wp_local_dev_debug = WP_LOCAL_DEV ? 'true' : 'false'; + // Check WP_ENVIRONMENT_TYPE. + if ( defined( 'WP_ENVIRONMENT_TYPE' ) ) { + $wp_environment_type = WP_ENVIRONMENT_TYPE; } else { - $wp_local_dev = __( 'Undefined' ); - $wp_local_dev_debug = 'undefined'; + $wp_environment_type = __( 'Undefined' ); } $info['wp-constants'] = array( @@ -318,10 +316,10 @@ class WP_Debug_Data { 'value' => $compress_css, 'debug' => $compress_css_debug, ), - 'WP_LOCAL_DEV' => array( - 'label' => 'WP_LOCAL_DEV', - 'value' => $wp_local_dev, - 'debug' => $wp_local_dev_debug, + 'WP_ENVIRONMENT_TYPE' => array( + 'label' => 'WP_ENVIRONMENT_TYPE', + 'value' => $wp_environment_type, + 'debug' => $wp_environment_type, ), 'DB_CHARSET' => array( 'label' => 'DB_CHARSET', diff --git a/wp-includes/version.php b/wp-includes/version.php index 5f964d4324..f1cea921d4 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '5.9-alpha-52020'; +$wp_version = '5.9-alpha-52021'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.