Skip to content

Commit a59ea8f

Browse files
committed
fixed GHU_Trait
1 parent b95f67a commit a59ea8f

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

CHANGES.md

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

3+
#### 9.9.22 / 2024-04-24
4+
5+
* Fixed GHU_Trait.
6+
37
#### 9.9.21 / 2024-02-20
48

59
* Fixed plugin update.

github-updater.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* Plugin Name: GitHub Updater
1313
* Plugin URI: https://github.com/cbratschi/github-updater
1414
* Description: A plugin to automatically update GitHub, Bitbucket, GitLab, or Gitea hosted plugins, themes, and language packs. It also allows for remote installation of plugins or themes into WordPress.
15-
* Version: 9.9.21
15+
* Version: 9.9.22
1616
* Author: Andy Fragen, Christoph Bratschi
1717
* License: GNU General Public License v2
1818
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -22,7 +22,7 @@
2222
* GitHub Plugin URI: https://github.com/cbratschi/github-updater
2323
* GitHub Languages: https://github.com/afragen/github-updater-translations
2424
* Requires at least: 6.0
25-
* Tested up to: 6.4.3
25+
* Tested up to: 6.5
2626
* Requires PHP: 7.4
2727
*/
2828

languages/github-updater.pot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# This file is distributed under the GNU General Public License v2.
33
msgid ""
44
msgstr ""
5-
"Project-Id-Version: GitHub Updater 9.9.21\n"
5+
"Project-Id-Version: GitHub Updater 9.9.22\n"
66
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/github-updater\n"
77
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
88
"Language-Team: LANGUAGE <[email protected]>\n"

src/GitHub_Updater/Base.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,14 @@ class Base {
9292
*/
9393
protected $tag = false;
9494

95+
/**
96+
* Variable to hold all repository remote info.
97+
*
98+
* @access protected
99+
* @var array
100+
*/
101+
protected $response = [];
102+
95103
/**
96104
* Constructor.
97105
*/
@@ -298,11 +306,13 @@ public function get_remote_repo_meta( $repo ) {
298306
//error_log('-> get data');
299307

300308
$file = 'style.css';
309+
301310
if ( false !== stripos( $repo->type, 'plugin' ) ) {
302311
$file = basename( $repo->file );
303312
}
304313

305314
$repo_api = Singleton::get_instance( 'API', $this )->get_repo_api( $repo->git, $repo );
315+
306316
if ( null === $repo_api ) {
307317
return false;
308318
}

0 commit comments

Comments
 (0)