Skip to content

Commit 6c0938e

Browse files
authored
Dependencies: Update Git Updater Lite and PHP Parser (#408)
* Dependencies: Bump Git Updater Lite to 2.3.2. * Dependencies: Bump PHP Parser to 5.5.0.
1 parent 669e50c commit 6c0938e

File tree

4 files changed

+31
-23
lines changed

4 files changed

+31
-23
lines changed

composer.lock

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

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,14 @@ public function run() {
112112
if ( empty( $this->update_server ) || is_wp_error( $this->update_server ) ) {
113113
return new \WP_Error( 'invalid_domain', 'Invalid update server domain', $this->update_server );
114114
}
115-
$url = "$this->update_server/wp-json/git-updater/v1/update-api/?slug=$this->slug";
115+
$url = add_query_arg(
116+
array( 'slug', $this->slug ),
117+
sprintf( '%s/wp-json/git-updater/v1/update-api/', $this->update_server )
118+
);
116119
$response = get_site_transient( "git-updater-lite_{$this->file}" );
117120
if ( ! $response ) {
118121
$response = wp_remote_post( $url );
119-
if ( is_wp_error( $response ) ) {
122+
if ( is_wp_error( $response ) || wp_remote_retrieve_response_code( $response ) === 404 ) {
120123
return $response;
121124
}
122125

@@ -172,7 +175,7 @@ function () {
172175
/**
173176
* Correctly rename dependency for activation.
174177
*
175-
* @param string $source Path fo $source.
178+
* @param string $source Path of $source.
176179
* @param string $remote_source Path of $remote_source.
177180
* @param \Plugin_Upgrader|\Theme_Upgrader $upgrader An Upgrader object.
178181
* @param array $hook_extra Array of hook data.

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.3.0",
4+
"version": "2.3.2",
55
"type": "library",
66
"keywords": [
77
"wordpress",

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

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,32 +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: 2025-02-24T21:37:03+00:00\n"
10+
"POT-Creation-Date: 2025-06-08T21:51:08+00:00\n"
1111
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12-
"X-Generator: WP-CLI 2.11.0\n"
12+
"X-Generator: WP-CLI 2.12.0\n"
1313
"X-Domain: git-updater-lite\n"
1414

1515
#. translators: %s: theme name
16-
#: Lite.php:388
16+
#: Lite.php:391
17+
#, php-format
1718
msgid "There is a new version of %s available."
1819
msgstr ""
1920

2021
#. translators: 1: version number, 2: closing anchor tag, 3: update URL
21-
#: Lite.php:399
22+
#: Lite.php:402
23+
#, php-format
2224
msgid "View version %1$s details%2$s or %3$supdate now%2$s."
2325
msgstr ""
2426

2527
#. translators: %s: theme name
26-
#: Lite.php:404
28+
#: Lite.php:407
29+
#, php-format
2730
msgid "Update %s now"
2831
msgstr ""
2932

3033
#. translators: 1: version number, 2: closing anchor tag, 3: update URL
31-
#: Lite.php:411
34+
#: Lite.php:414
35+
#, php-format
3236
msgid "View version %1$s details%2$s."
3337
msgstr ""
3438

3539
#. translators: %s: opening/closing paragraph and italic tags
36-
#: Lite.php:417
40+
#: Lite.php:420
41+
#, php-format
3742
msgid "%1$sAutomatic update is unavailable for this theme.%2$s"
3843
msgstr ""

0 commit comments

Comments
 (0)