File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,13 +37,13 @@ class WP_Site_Health {
3737 /**
3838 * @since 7.0.0
3939 */
40- private ?bool $ wp_debug_display = null ;
40+ private ?bool $ wp_debug_display ;
4141
4242 /**
4343 * @since 7.0.0
4444 * @var string|bool
4545 */
46- private $ wp_debug_log = false ;
46+ private $ wp_debug_log ;
4747
4848 /**
4949 * WP_Site_Health constructor.
@@ -74,9 +74,13 @@ public function __construct() {
7474 $ this ->wp_debug = defined ( 'WP_DEBUG ' ) && WP_DEBUG ;
7575 if ( defined ( 'WP_DEBUG_LOG ' ) && ( is_bool ( WP_DEBUG_LOG ) || is_string ( WP_DEBUG_LOG ) ) ) {
7676 $ this ->wp_debug_log = WP_DEBUG_LOG ;
77+ } else {
78+ $ this ->wp_debug_log = false ;
7779 }
7880 if ( defined ( 'WP_DEBUG_DISPLAY ' ) && is_bool ( WP_DEBUG_DISPLAY ) ) {
7981 $ this ->wp_debug_display = WP_DEBUG_DISPLAY ;
82+ } else {
83+ $ this ->wp_debug_display = null ;
8084 }
8185 }
8286
You can’t perform that action at this time.
0 commit comments