Skip to content

Commit

Permalink
delete specific transient
Browse files Browse the repository at this point in the history
  • Loading branch information
nimrod-cohen committed Oct 6, 2024
1 parent cfc740f commit b9b630e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

**/.DS_Store
Binary file removed assets/.DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion fv-country-blocker.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: FV Country Blocker
* Plugin URI: https://github.com/nimrod-cohen/fv-country-blocker
* Description: Block visitors from specific countries using MaxMind GeoIP database.
* Version: 1.0.9
* Version: 1.0.10
* Author: Nimrod Cohen
* Author URI: https://github.com/nimrod-cohen/fv-country-blocker
* License: GPL-2.0+
Expand Down
2 changes: 1 addition & 1 deletion includes/github-updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function upgrader_post_install($true, $hook_extra, $result) {
$result['destination'] = $proper_destination;
$activate = activate_plugin(self::PLUGIN_SLUG . '/' . self::PLUGIN_SLUG . ".php");

delete_site_transient('update_plugins');
delete_transient(self::PLUGIN_SLUG . '_transient_data');

// Output the update message
$fail = __('The plugin has been updated, but could not be reactivated. Please reactivate it manually.', 'github_plugin_updater');
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: country blocker, IP blocker, geo-blocking, security
Requires at least: 5.0
Tested up to: 6.0
Requires PHP: 7.0
Stable tag: 1.0.9
Stable tag: 1.0.10
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Expand Down

0 comments on commit b9b630e

Please sign in to comment.