mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- reviewed #1313;
This commit is contained in:
@@ -89,6 +89,7 @@ if ( ! class_exists( 'um\admin\Admin' ) ) {
|
||||
$this->enqueue();
|
||||
$this->notices();
|
||||
$this->secure();
|
||||
$this->site_health();
|
||||
}
|
||||
|
||||
function init_variables() {
|
||||
@@ -2077,5 +2078,17 @@ if ( ! class_exists( 'um\admin\Admin' ) ) {
|
||||
}
|
||||
return UM()->classes['um\admin\secure'];
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 2.6.12
|
||||
*
|
||||
* @return Site_Health
|
||||
*/
|
||||
public function site_health() {
|
||||
if ( empty( UM()->classes['um\admin\site_health'] ) ) {
|
||||
UM()->classes['um\admin\site_health'] = new Site_Health();
|
||||
}
|
||||
return UM()->classes['um\admin\site_health'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user