diff --git a/Aeria/Aeria.php b/Aeria/Aeria.php index d3f504e..c7cb319 100755 --- a/Aeria/Aeria.php +++ b/Aeria/Aeria.php @@ -31,7 +31,7 @@ */ class Aeria extends Container { - const VERSION = '3.2.9'; + const VERSION = '3.2.10'; /** * Constructs the Aeria container. diff --git a/Aeria/Kernel/Tasks/CreateUpdater.php b/Aeria/Kernel/Tasks/CreateUpdater.php index 49ab225..8e85648 100644 --- a/Aeria/Kernel/Tasks/CreateUpdater.php +++ b/Aeria/Kernel/Tasks/CreateUpdater.php @@ -28,13 +28,5 @@ class CreateUpdater extends Task */ public function do(array $args) { - $args['service']['updater']->config( - [ - // "access_token" => "", - 'slug' => 'aeria/aeria.php', - 'version' => $args['container']->version(), - 'proper_folder_name' => 'aeria', - ] - ); } } diff --git a/Aeria/Updater/Updater.php b/Aeria/Updater/Updater.php index d3d797c..3a6fd83 100644 --- a/Aeria/Updater/Updater.php +++ b/Aeria/Updater/Updater.php @@ -22,26 +22,19 @@ class Updater */ public function __construct() { + // set config + $this->config = [ + 'slug' => 'aeria/aeria.php', + 'proper_folder_name' => 'aeria', + ]; // define the alternative API for updating checking add_filter('pre_set_site_transient_update_plugins', array($this, 'checkVersion')); - // Define the alternative response for information checking + // define the alternative response for information checking add_filter('plugins_api', array($this, 'setPluginInfo'), 10, 3); // reactivate plugin add_filter('upgrader_post_install', array($this, 'postInstall'), 10, 3); } - /** - * Saves the provided config. - * - * @param array $config the configuration - * - * @since Method available since Release 3.0.0 - */ - public function config($config) - { - $this->config = $config; - } - /** * Gets the plugin data from plugin.php. * diff --git a/aeria.php b/aeria.php index c13473e..b7d339f 100755 --- a/aeria.php +++ b/aeria.php @@ -10,7 +10,7 @@ * Plugin Name: Aeria * Plugin URI: https://github.com/caffeinalab/aeria * Description: Aeria is a modular, lightweight, fast WordPress Application development kit. - * Version: 3.2.9 + * Version: 3.2.10 * Author: Caffeina * Author URI: https://caffeina.com * Text Domain: aeria diff --git a/package-lock.json b/package-lock.json index fdfd351..4c69869 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "aeria", - "version": "3.2.9", + "version": "3.2.10", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 67d4571..e8a718c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aeria", - "version": "3.2.9", + "version": "3.2.10", "description": "Aeria", "scripts": { "dev": "webpack --watch --mode development",