Skip to content

Commit

Permalink
v1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ve3 committed Jul 7, 2024
1 parent db22011 commit 0edcce0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
5 changes: 3 additions & 2 deletions App/Controllers/Admin/SettingsAjax.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ public function installLatestFAVersion()
empty($allSettings) ||
(
isset($allSettings['fontawesome_version']) &&
version_compare($allSettings['fontawesome_version'], $major_version, '<')
version_compare($allSettings['fontawesome_version'], $latestVersion, '<')
) ||
!is_dir(($this->getStaticPluginData())['targetPublishDir'])
) {
// if never installed before OR older that latest released.
// if never installed before OR older than latest released.
$dlResult = $this->Url->downloadFile($downloadLink, $major_version);
$output['downloadResult'] = $this->Url->downloadResult;
if (is_wp_error($dlResult)) {
Expand Down Expand Up @@ -150,6 +150,7 @@ public function installLatestFAVersion()
'result' => true,
'latestVersion' => $latestVersion,
'currentVersion' => ($allSettings['fontawesome_version'] ?? null),
'alreadyLatest' => true,
];
$output['downloadLink'] = $downloadLink;
$output['tagVersion'] = ($allSettings['fontawesome_version'] ?? null);
Expand Down
2 changes: 1 addition & 1 deletion rd-fontawesome.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Rundiz Font Awesome
* Plugin URI: https://rundiz.com/?p=319
* Description: Use Font Awesome from your host and update from GitHub.
* Version: 1.0.2
* Version: 1.0.3
* Requires at least: 5.0
* Requires PHP: 7.0
* Author: Vee Winch
Expand Down
9 changes: 7 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
Contributors: okvee
Tags: fontawesome, font awesome, icons
Requires at least: 5.0
Tested up to: 6.1
Stable tag: 1.0.2
Tested up to: 6.6
Stable tag: 1.0.3
Requires PHP: 7.0
License: MIT
License URI: http://opensource.org/licenses/MIT
Expand Down Expand Up @@ -68,6 +68,11 @@ This plugin download all necessary files that is ready to use such as CSS, fonts
1. Settings page.

== Changelog ==
= 1.0.3 =
2024-07-07

* Fix check latest version on install command.

= 1.0.2 =
2022-02-18

Expand Down

0 comments on commit 0edcce0

Please sign in to comment.