Skip to content

Commit ac2636d

Browse files
authored
Merge pull request #6 from afragen/main
Revert stuff for fixing download link
2 parents 92c8323 + c608395 commit ac2636d

File tree

7 files changed

+16
-45
lines changed

7 files changed

+16
-45
lines changed

CHANGELOG.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
[unreleased]
22

3-
#### 0.7.0 / 2026-02-11
4-
* update download link for development channel
5-
6-
#### 0.6.0 / 2026-02-11
3+
#### 0.6.0 - 0.8.0 / 2026-02-11
4+
* update download link for development channel - reverted
75
* use Git Updater Lite
86
* initial pass

composer.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

fair-beta-tester.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* Plugin Name: FAIR Connect Beta Tester
44
* Description: Enable beta testing for FAIR Connect plugin.
5-
* Version: 0.7.0
5+
* Version: 0.8.0
66
* Author: FAIR Contributors
77
* Author URI: https://fair.pm
88
* Security: security@fair.pm

inc/namespace.php

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
function bootstrap(): void {
1717
add_action( 'plugins_loaded', __NAMESPACE__ . '\run' );
1818
add_filter( 'git_updater_lite_api_url', __NAMESPACE__ . '\add_development_channel_support', 10, 2 );
19-
add_filter( 'git_updater_lite_api_data', __NAMESPACE__ . '\update_download_link', 10, 3 );
2019
}
2120

2221
/**
@@ -42,20 +41,3 @@ function add_development_channel_support( $url, $slug ): string {
4241
}
4342
return $url;
4443
}
45-
46-
/**
47-
* Update download link with current development channel link.
48-
*
49-
* @param object $api_data API data object.
50-
* @param string $slug Plugin slug.
51-
* @param string $url Git Updater API URL.
52-
*
53-
* @return object Updated API data object.
54-
*/
55-
function update_download_link( $api_data, $slug, $url ) : object {
56-
$parsed_url = parse_url( $url, PHP_URL_QUERY );
57-
if ( 'fair-plugin' === $slug && str_contains( $parsed_url, 'channel=development' ) ) {
58-
$api_data->download_link = reset( $api_data->versions );
59-
}
60-
return $api_data;
61-
}

vendor/afragen/git-updater-lite/Lite.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -141,15 +141,6 @@ public function run() {
141141
if ( null === $this->api_data || empty( (array) $this->api_data ) || property_exists( $this->api_data, 'error' ) ) {
142142
return new WP_Error( 'non_json_api_response', 'Poorly formed JSON', $response );
143143
}
144-
/**
145-
* Apply filter to API data.
146-
* Used for development channel.
147-
*
148-
* @param object $api_data The API data object.
149-
* @param string $slug The plugin/theme slug.
150-
* @param string $url The API URL.
151-
*/
152-
$this->api_data = apply_filters( 'git_updater_lite_api_data', $this->api_data, $this->slug, $url );
153144
$this->api_data->file = $this->file;
154145

155146
// Set timeout for transient via filter.

vendor/afragen/git-updater-lite/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "afragen/git-updater-lite",
33
"description": "A simple class to integrate with Git Updater for standalone plugin/theme updates.",
4-
"version": "2.8.0",
4+
"version": "2.8.1",
55
"type": "library",
66
"keywords": [
77
"wordpress",

vendor/afragen/git-updater-lite/languages/git-updater-lite.pot

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,37 +7,37 @@ msgstr ""
77
"MIME-Version: 1.0\n"
88
"Content-Type: text/plain; charset=UTF-8\n"
99
"Content-Transfer-Encoding: 8bit\n"
10-
"POT-Creation-Date: 2026-02-11T22:11:06+00:00\n"
10+
"POT-Creation-Date: 2026-02-12T00:05:56+00:00\n"
1111
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1212
"X-Generator: WP-CLI 2.12.0\n"
1313
"X-Domain: git-updater-lite\n"
1414

1515
#. translators: %s: theme name
16-
#: Lite.php:434
16+
#: Lite.php:425
1717
#, php-format
1818
msgid "There is a new version of %s available."
1919
msgstr ""
2020

2121
#. translators: 1: version number, 2: closing anchor tag, 3: update URL
22-
#: Lite.php:445
22+
#: Lite.php:436
2323
#, php-format
2424
msgid "View version %1$s details%2$s or %3$supdate now%2$s."
2525
msgstr ""
2626

2727
#. translators: %s: theme name
28-
#: Lite.php:450
28+
#: Lite.php:441
2929
#, php-format
3030
msgid "Update %s now"
3131
msgstr ""
3232

3333
#. translators: 1: version number, 2: closing anchor tag, 3: update URL
34-
#: Lite.php:457
34+
#: Lite.php:448
3535
#, php-format
3636
msgid "View version %1$s details%2$s."
3737
msgstr ""
3838

3939
#. translators: %s: opening/closing paragraph and italic tags
40-
#: Lite.php:463
40+
#: Lite.php:454
4141
#, php-format
4242
msgid "%1$sAutomatic update is unavailable for this theme.%2$s"
4343
msgstr ""

0 commit comments

Comments
 (0)