mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- fixed displaying outdated templates admin notice between theme switching;
This commit is contained in:
@@ -24,6 +24,7 @@ if ( ! class_exists( 'um\common\Init' ) ) {
|
||||
$this->screen();
|
||||
$this->secure()->hooks();
|
||||
$this->site_health();
|
||||
$this->theme()->hooks();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -73,5 +74,17 @@ if ( ! class_exists( 'um\common\Init' ) ) {
|
||||
}
|
||||
return UM()->classes['um\common\site_health'];
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 2.8.3
|
||||
*
|
||||
* @return Theme
|
||||
*/
|
||||
public function theme() {
|
||||
if ( empty( UM()->classes['um\common\theme'] ) ) {
|
||||
UM()->classes['um\common\theme'] = new Theme();
|
||||
}
|
||||
return UM()->classes['um\common\theme'];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user