Skip to content

Commit a01554e

Browse files
committed
Merge branch 'develop'
2 parents 7e94e12 + c13ed33 commit a01554e

File tree

6 files changed

+18
-4
lines changed

6 files changed

+18
-4
lines changed

CHANGES.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#### [unreleased]
22

3+
#### 10.0.1 / 2021-05-18
4+
* update error log message branding
5+
* ensure custom icon shows in update notice from Freemius
6+
37
#### 10.0.0 / 2021-05-17
48
##### Requires PHP 7.0+
59
* added default values in API constructors for future proofing

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
![WordPress Tests](https://github.com/afragen/git-updater/workflows/WordPress%20Tests/badge.svg)
88

99
* Contributors: [Andy Fragen](https://github.com/afragen), [contributors](https://github.com/afragen/git-updater/graphs/contributors)
10-
* Tags: plugin, theme, update, github, language pack, remote install
10+
* Tags: plugin, theme, update, github, language pack
1111
* Requires at least: 5.2
1212
* Requires PHP: 7.0
1313
* Tested up to: trunk

git-updater.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* Plugin Name: Git Updater
1313
* Plugin URI: https://git-updater.com
1414
* Description: A plugin to automatically update GitHub hosted plugins, themes, and language packs. Additional API plugins available for Bitbucket, GitLab, Gitea, and Gist.
15-
* Version: 10.0.0
15+
* Version: 10.0.1
1616
* Author: Andy Fragen
1717
* License: MIT
1818
* Domain Path: /languages

readme.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Git Updater
22
Contributors: afragen
33
Donate link: https://thefragens.com/git-updater-donate
4-
Tags: plugin, theme, language pack, updater, remote install
4+
Tags: plugin, theme, language pack, updater
55
Requires at least: 5.2
66
Requires PHP: 7.0
77
Tested up to: 5.8

src/Git_Updater/API/API.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ public function api( $url ) {
209209
if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) {
210210
$response_body = \json_decode( wp_remote_retrieve_body( $response ) );
211211
if ( null !== $response_body && \property_exists( $response_body, 'message' ) ) {
212-
$log_message = "GitHub Updater Error: {$this->type->name} ({$this->type->slug}:{$this->type->branch}) - {$response_body->message}";
212+
$log_message = "Git Updater Error: {$this->type->name} ({$this->type->slug}:{$this->type->branch}) - {$response_body->message}";
213213
// phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_error_log
214214
error_log( $log_message );
215215
}

src/Git_Updater/GU_Freemius.php

+10
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,15 @@ function gu_fs() {
6868
// Signal that SDK was initiated.
6969
do_action( 'gu_fs_loaded' );
7070
}
71+
gu_fs()->add_filter( 'plugin_icon', [ $this, 'add_icon' ] );
72+
}
73+
74+
/**
75+
* Add custom plugin icon to update notice.
76+
*
77+
* @return string
78+
*/
79+
public function add_icon() {
80+
return dirname( __DIR__, 2 ) . '/assets/icon.svg';
7181
}
7282
}

0 commit comments

Comments
 (0)