- fixed #1241 issue;

This commit is contained in:
Mykyta Synelnikov
2023-07-11 17:59:54 +03:00
parent 543e0a803a
commit 6c3b06dff0
8 changed files with 84 additions and 8 deletions
+13
View File
@@ -23,6 +23,7 @@ if ( ! class_exists( 'um\common\Init' ) ) {
$this->cpt()->hooks();
$this->screen();
$this->secure()->hooks();
$this->site_health();
}
/**
@@ -60,5 +61,17 @@ if ( ! class_exists( 'um\common\Init' ) ) {
}
return UM()->classes['um\common\secure'];
}
/**
* @since 2.6.8
*
* @return Site_Health
*/
public function site_health() {
if ( empty( UM()->classes['um\common\site_health'] ) ) {
UM()->classes['um\common\site_health'] = new Site_Health();
}
return UM()->classes['um\common\site_health'];
}
}
}