mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-14 04:06:36 +09:00
- plugin updater class for extensions;
This commit is contained in:
@@ -284,6 +284,7 @@ if ( ! class_exists( 'UM' ) ) {
|
||||
$this->notices();
|
||||
$this->users();
|
||||
$this->dragdrop();
|
||||
$this->plugin_updater();
|
||||
} elseif ( $this->is_request( 'frontend' ) ) {
|
||||
$this->enqueue();
|
||||
$this->rewrite();
|
||||
@@ -327,6 +328,19 @@ if ( ! class_exists( 'UM' ) ) {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @since 2.0
|
||||
*
|
||||
* @return um\core\Plugin_Updater()
|
||||
*/
|
||||
function plugin_updater() {
|
||||
if ( empty( $this->classes['plugin_updater'] ) ) {
|
||||
$this->classes['plugin_updater'] = new um\core\Plugin_Updater();
|
||||
}
|
||||
return $this->classes['plugin_updater'];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @since 2.0
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user