Skip to content

Updater: harden update checks and prevent undefined indexes

Choose a tag to compare

@zackpyle zackpyle released this 12 Oct 18:37
· 1 commit to main since this release

Tested: 6.8.2
Icons: 1x|/blob/main/includes/assets/icon-128x128.png?raw=true,2x|/blob/main/includes/assets/icon-256x256.png?raw=true
Banners: low|/blob/main/includes/assets/banner-772x250.png?raw=true,high|/blob/main/includes/assets/banner-772x250.png?raw=true
RequiresPHP: 7.4

|||

Updater fixes:

  • Guard GitHub API errors/non-200 and normalize response with safe defaults
  • Safely derive latest version from tag_name/name and bail when missing
  • Avoid notices in modify_transient() and plugin_popup() with null-coalescing
  • Append access token to API and zip URLs when provided

Full Changelog: 1.0.8...1.0.9