Merge pull request #1313 from ultimatemember/feature/site_health

Site health
This commit is contained in:
Mykyta Synelnikov
2023-09-28 12:13:27 +03:00
committed by GitHub
2 changed files with 1780 additions and 0 deletions
File diff suppressed because it is too large Load Diff
+13
View File
@@ -583,6 +583,7 @@ if ( ! class_exists( 'UM' ) ) {
$this->admin_navmenu();
$this->plugin_updater();
$this->theme_updater();
$this->site_health();
} elseif ( $this->is_request( 'frontend' ) ) {
$this->frontend()->includes();
$this->account();
@@ -781,6 +782,18 @@ if ( ! class_exists( 'UM' ) ) {
}
/**
* @since 2.0.45
* @return um\admin\core\Admin_Site_Health()
*/
public function site_health() {
if ( empty( $this->classes['site_health'] ) ) {
$this->classes['site_health'] = new um\admin\core\Admin_Site_Health();
}
return $this->classes['site_health'];
}
/**
* @since 2.0
*/