Skip to content

v2.7.1 - Updates page with GitHub release checking

Choose a tag to compare

@hummelmose hummelmose released this 07 Aug 12:44
· 8 commits to main since this release

WP VisitChart v2.7.1

New feature: Updates page with automatic GitHub release checking.


v2.7.0 — Updates page

A new Opdateringer submenu appears under WP VisitChart in the admin menu.

  • Checks the GitHub releases API once every 24 hours, cached via a WordPress transient
  • Red notification badge on the menu item — matching WordPress's own plugin update indicator style — shown when a newer version is available
  • Page shows installed version, a status banner (green/red), a download button linking directly to the release zip, a link to the GitHub release page, and the full release notes rendered from Markdown to HTML
  • Failed API calls are cached for only 1 hour, so temporary network issues don't block retries for a full day

v2.7.1 — Fix: download button logic

The download button was shown even when the installed version was already equal to or newer than the latest GitHub release. Now the button only appears when an actual update is available — otherwise only the GitHub link is shown.


Documentation

Both the English and Danish user manuals have been updated with a new section covering the Updates page.


Upgrade

Download wp-visitchart.zip below and replace the existing plugin files. No database changes required.