mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- fixed #1241 issue;
This commit is contained in:
@@ -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'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user