Skip to content

Commit 5599f88

Browse files
committed
Merge branch 'develop'
2 parents ebaadaf + 72d98fc commit 5599f88

File tree

3 files changed

+26
-18
lines changed

3 files changed

+26
-18
lines changed

CHANGES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#### [unreleased]
22

3+
#### 12.17.2 / 2025-07-26
4+
* update `GU_Freemius` for FAIR installation
5+
36
#### 12.17.1 / 2025-07-20
47
* add remote data for `did`, `slug_hash` if added via `Additions`
58
* use `Bearer` for token with GitHub API

git-updater.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* Plugin ID: did:plc:afjf7gsjzsqmgc7dlhb553mv
1414
* Plugin URI: https://git-updater.com
1515
* Description: A plugin to automatically update GitHub hosted plugins, themes, and language packs. Additional API plugins available for Bitbucket, GitLab, Gitea, and Gist.
16-
* Version: 12.17.1
16+
* Version: 12.17.2
1717
* Author: Andy Fragen
1818
* Author URI: https://thefragens.com
1919
* License: MIT

src/Git_Updater/GU_Freemius.php

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
namespace Fragen\Git_Updater;
1212

13+
use Fragen\Git_Updater\Traits\GU_Trait;
1314
use Freemius;
1415
use FS_Plugin_Updater;
1516
use stdClass;
@@ -26,6 +27,7 @@
2627
* Freemius 'start.php' autoloaded via composer.
2728
*/
2829
class GU_Freemius {
30+
use GU_Trait;
2931

3032
/**
3133
* Freemius integration.
@@ -172,7 +174,7 @@ public function uninstall_cleanup() {
172174
*/
173175
public function remove_fs_plugin_updater_hooks( Freemius $gu_fs ) {
174176
$FS_Plugin_Updater = FS_Plugin_Updater::instance( $gu_fs );
175-
$plugin_name = 'git-updater/git-updater.php';
177+
$plugin_names = [ 'git-updater/git-updater.php', 'git-updater-' . $this->get_did_hash( 'did:plc:afjf7gsjzsqmgc7dlhb553mv' ) . '/git-updater.php' ];
176178

177179
// Bypass Freemius update-core.php dialog.
178180
remove_filter( 'admin_init', [ $gu_fs, '_add_premium_version_upgrade_selection' ] );
@@ -182,22 +184,25 @@ public function remove_fs_plugin_updater_hooks( Freemius $gu_fs ) {
182184
remove_action( 'admin_head', [ $FS_Plugin_Updater, 'catch_plugin_information_dialog_contents' ] );
183185

184186
// Remove Freemius plugin row modifications.
185-
remove_action(
186-
"after_plugin_row_{$plugin_name}",
187-
[
188-
$FS_Plugin_Updater,
189-
'catch_plugin_update_row',
190-
],
191-
9
192-
);
193-
remove_action(
194-
"after_plugin_row_{$plugin_name}",
195-
[
196-
$FS_Plugin_Updater,
197-
'edit_and_echo_plugin_update_row',
198-
],
199-
11
200-
);
187+
foreach ( $plugin_names as $plugin_name ) {
188+
remove_action(
189+
"after_plugin_row_{$plugin_name}",
190+
[
191+
$FS_Plugin_Updater,
192+
'catch_plugin_update_row',
193+
],
194+
9
195+
);
196+
remove_action(
197+
"after_plugin_row_{$plugin_name}",
198+
[
199+
$FS_Plugin_Updater,
200+
'edit_and_echo_plugin_update_row',
201+
],
202+
11
203+
);
204+
205+
}
201206

202207
// Remove Freemius 'update_plugins' transient filter.
203208
remove_filter(

0 commit comments

Comments
 (0)