mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-07 22:24:36 +00:00
Bootstrap/Load: Confirm the value of WP_ENVIRONMENT_TYPE before using.
This adjusts the check for the presence of the `WP_ENVIRONMENT_TYPE` constant to also confirm it is set to a non-empty value before using. Props dd32, khokansardar, ramon-fincken. Fixes #55741. git-svn-id: https://develop.svn.wordpress.org/trunk@54239 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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' );
|
||||
|
||||
Reference in New Issue
Block a user