mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
- reviewed #1313;
This commit is contained in:
@@ -89,6 +89,7 @@ if ( ! class_exists( 'um\admin\Admin' ) ) {
|
|||||||
$this->enqueue();
|
$this->enqueue();
|
||||||
$this->notices();
|
$this->notices();
|
||||||
$this->secure();
|
$this->secure();
|
||||||
|
$this->site_health();
|
||||||
}
|
}
|
||||||
|
|
||||||
function init_variables() {
|
function init_variables() {
|
||||||
@@ -2077,5 +2078,17 @@ if ( ! class_exists( 'um\admin\Admin' ) ) {
|
|||||||
}
|
}
|
||||||
return UM()->classes['um\admin\secure'];
|
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'];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -583,7 +583,6 @@ if ( ! class_exists( 'UM' ) ) {
|
|||||||
$this->admin_navmenu();
|
$this->admin_navmenu();
|
||||||
$this->plugin_updater();
|
$this->plugin_updater();
|
||||||
$this->theme_updater();
|
$this->theme_updater();
|
||||||
$this->site_health();
|
|
||||||
} elseif ( $this->is_request( 'frontend' ) ) {
|
} elseif ( $this->is_request( 'frontend' ) ) {
|
||||||
$this->frontend()->includes();
|
$this->frontend()->includes();
|
||||||
$this->account();
|
$this->account();
|
||||||
@@ -781,19 +780,6 @@ if ( ! class_exists( 'UM' ) ) {
|
|||||||
return $this->classes['theme_updater'];
|
return $this->classes['theme_updater'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @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
|
* @since 2.0
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user