diff --git a/gitea-updater-settings.php b/gitea-options.php similarity index 97% rename from gitea-updater-settings.php rename to gitea-options.php index 96f3837..8378aa2 100644 --- a/gitea-updater-settings.php +++ b/gitea-options.php @@ -2,7 +2,7 @@ defined( 'ABSPATH' ) or exit; -class Gitea_Updater_Settings { +class Gitea_Options { private static $_instance; @@ -37,7 +37,6 @@ class Gitea_Updater_Settings { ?>
-

Gitea Updater

diff --git a/gitea-updater.php b/gitea-updater.php index 9c5a9f7..31850ca 100644 --- a/gitea-updater.php +++ b/gitea-updater.php @@ -21,7 +21,7 @@ TODO: defined( 'ABSPATH' ) or exit; -require 'gitea-updater-settings.php'; +require 'gitea-options.php'; class Gitea_Updater { @@ -41,7 +41,7 @@ class Gitea_Updater { function __construct() { - Gitea_Updater_Settings::getInstance(); + Gitea_Options::getInstance(); add_action('admin_init', array($this, 'admin_init')); @@ -85,7 +85,6 @@ class Gitea_Updater { // if is time... update data if (($now - $last_checked) > $check_interval) { $this->get_gitea_all(); - update_option('gitea_last_checked', $now); } @@ -94,7 +93,6 @@ class Gitea_Updater { function get_gitea_all() { $this->get_gitea_plugins(); $this->get_gitea_themes(); - $time_end = microtime(true); } function get_gitea_plugins() {