mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-19 06:33:50 +09:00
Restore UM templates after theme update
This commit is contained in:
@@ -509,6 +509,7 @@ if ( ! class_exists( 'UM' ) ) {
|
||||
$this->columns();
|
||||
$this->notices();
|
||||
$this->admin_navmenu();
|
||||
$this->theme_updater();
|
||||
} elseif ( $this->is_request( 'admin' ) ) {
|
||||
$this->admin();
|
||||
$this->admin_menu();
|
||||
@@ -523,6 +524,7 @@ if ( ! class_exists( 'UM' ) ) {
|
||||
$this->plugin_updater();
|
||||
$this->admin_gdpr();
|
||||
$this->admin_navmenu();
|
||||
$this->theme_updater();
|
||||
} elseif ( $this->is_request( 'frontend' ) ) {
|
||||
$this->enqueue();
|
||||
$this->account();
|
||||
@@ -645,6 +647,18 @@ if ( ! class_exists( 'UM' ) ) {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @since 2.0.45
|
||||
* @return um\admin\core\Admin_Theme_Updater()
|
||||
*/
|
||||
function theme_updater() {
|
||||
if ( empty( $this->classes['theme_updater'] ) ) {
|
||||
$this->classes['theme_updater'] = new um\admin\core\Admin_Theme_Updater();
|
||||
}
|
||||
return $this->classes['theme_updater'];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @since 2.0
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user