Skip to content

Commit

Permalink
don't optin if already set
Browse files Browse the repository at this point in the history
changes, bump
  • Loading branch information
afragen committed Nov 5, 2022
1 parent 333e0ba commit 6043b62
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion git-updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion src/Git_Updater/GU_Appsero.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 6043b62

Please sign in to comment.