Searched hist:"6221 d5c42e5fb4a52a9b7061fd50049b3ce2ba07" (Results 1 – 1 of 1) sorted by relevance
| /plugin/upgrade/ |
| H A D | admin.php | 6221d5c42e5fb4a52a9b7061fd50049b3ce2ba07 Wed May 19 15:00:44 UTC 2021 Frédéric Sheedy <sheedf@gmail.com> Adjust version number when we compare versions
Plugin alway shows an available upgrade. This is cause when we compare full version strings, they differ:
- $tgzversion value is: 2020-07-29 "Hogfather"
- $version value is: Release 2020-07-29 "Hogfather"
This fix use the getVersionData() function to ignore the "Release" string added using getVersion() function.
Also, $tgzversion value may contain spaces at the end. So we add a trim() for both variables.
Fix #201
The bug was introduced in commit 27c6a3e.
|