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 ;
40+ private ?bool $ wp_debug_display = null ;
4141
4242 /**
4343 * @since 7.0.0
4444 * @var string|bool
4545 */
46- private $ wp_debug_log ;
46+ private $ wp_debug_log = false ;
4747
4848 /**
4949 * WP_Site_Health constructor.
@@ -74,13 +74,9 @@ 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 ;
7977 }
8078 if ( defined ( 'WP_DEBUG_DISPLAY ' ) && is_bool ( WP_DEBUG_DISPLAY ) ) {
8179 $ this ->wp_debug_display = WP_DEBUG_DISPLAY ;
82- } else {
83- $ this ->wp_debug_display = null ;
8480 }
8581 }
8682
You can’t perform that action at this time.
0 commit comments