From 6043b62455f94d75e20e727736e3a58056239863 Mon Sep 17 00:00:00 2001 From: Andy Fragen Date: Sat, 5 Nov 2022 10:26:44 -0700 Subject: [PATCH] don't optin if already set changes, bump --- CHANGES.md | 3 +++ git-updater.php | 2 +- src/Git_Updater/GU_Appsero.php | 4 +++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index c6495b601..b2b5a59f3 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,8 @@ #### [unreleased] +#### 11.1.10 / 2022-11-05 +* fix Appsero cron task from running more than scheduled + #### 11.1.9 / 2022-10-30 * remove all `Ignore` items diff --git a/git-updater.php b/git-updater.php index a8463a619..36d0e190e 100644 --- a/git-updater.php +++ b/git-updater.php @@ -12,7 +12,7 @@ * Plugin Name: Git Updater * Plugin URI: https://git-updater.com * Description: A plugin to automatically update GitHub hosted plugins, themes, and language packs. Additional API plugins available for Bitbucket, GitLab, Gitea, and Gist. - * Version: 11.1.9 + * Version: 11.1.10 * Author: Andy Fragen * License: MIT * Domain Path: /languages diff --git a/src/Git_Updater/GU_Appsero.php b/src/Git_Updater/GU_Appsero.php index 9880c27c3..dba5f773e 100644 --- a/src/Git_Updater/GU_Appsero.php +++ b/src/Git_Updater/GU_Appsero.php @@ -63,7 +63,9 @@ public function appsero_init_tracker_git_updater() { ->hide_notice() ->add_plugin_data() ->init(); - $client->insights()->optin(); + if ( 'yes' !== get_option( $client->slug . '_allow_tracking' ) ) { + $client->insights()->optin(); + } $gu_license = $client->license();