diff --git a/wp-admin/includes/class-wp-debug-data.php b/wp-admin/includes/class-wp-debug-data.php index ab0926d3ac..67d79b9369 100644 --- a/wp-admin/includes/class-wp-debug-data.php +++ b/wp-admin/includes/class-wp-debug-data.php @@ -236,7 +236,7 @@ class WP_Debug_Data { } // Check WP_ENVIRONMENT_TYPE. - if ( defined( 'WP_ENVIRONMENT_TYPE' ) ) { + if ( defined( 'WP_ENVIRONMENT_TYPE' ) && WP_ENVIRONMENT_TYPE ) { $wp_environment_type = WP_ENVIRONMENT_TYPE; } else { $wp_environment_type = __( 'Undefined' ); diff --git a/wp-includes/load.php b/wp-includes/load.php index d4bc58b9c2..f927fd3e4f 100644 --- a/wp-includes/load.php +++ b/wp-includes/load.php @@ -227,7 +227,7 @@ function wp_get_environment_type() { } // Fetch the environment from a constant, this overrides the global system variable. - if ( defined( 'WP_ENVIRONMENT_TYPE' ) ) { + if ( defined( 'WP_ENVIRONMENT_TYPE' ) && WP_ENVIRONMENT_TYPE ) { $current_env = WP_ENVIRONMENT_TYPE; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 1c1b76f998..83ba3f1159 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-alpha-54238'; +$wp_version = '6.1-alpha-54239'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.