- plugin updater class for extensions;

This commit is contained in:
nikitozzzzzzz
2017-09-11 18:05:42 +03:00
parent b7cca5a39b
commit c9c68361b7
2 changed files with 340 additions and 0 deletions
+14
View File
@@ -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
*/