From 6632c1ab14d722645e57ac63c6fe8d8b0bdb2d55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Cap=C3=B3?= Date: Tue, 14 Mar 2017 16:45:33 +0100 Subject: [PATCH] rename from settings to options --- gitea-updater-settings.php => gitea-options.php | 3 +-- gitea-updater.php | 6 ++---- 2 files changed, 3 insertions(+), 6 deletions(-) rename gitea-updater-settings.php => gitea-options.php (97%) 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() {