Skip to content

Fix stale notice#20

Open
kimo-works wants to merge 3 commits into
masterfrom
fix-stale-notice
Open

Fix stale notice#20
kimo-works wants to merge 3 commits into
masterfrom
fix-stale-notice

Conversation

@kimo-works

Copy link
Copy Markdown
Contributor

No description provided.

JurriaanK and others added 2 commits July 13, 2026 16:09
Older bundled license handlers stored inactive-license warnings as sticky Gravity Forms dismissible messages. Those messages persisted in gform_sticky_admin_messages after a site upgraded to the Hub/global-license flow, so users could still see "license has not been activated" even though Hub_Manager reported valid access via a Global License Key.\n\nRemove the sticky GF notice whenever addon access is confirmed, from both LicenseHandler and Plugin_Updater validation paths. Also guard action_admin_notices() so stale notices are consumed instead of re-added when the Hub grants access. Cleanup covers legacy download_tag keys plus canonical slug/github_name variants.
- FIX: Stale "Your … license has not been activated" admin notices now disappear automatically once a valid license key covers the plugin. They were stored as sticky Gravity Forms messages (gform_sticky_admin_messages) by older bundled handler versions and nothing ever removed them. Covered notices are now suppressed at display time and purged from the database.
- FIX: License lookups by legacy addon slug (e.g. 'gravitywpapiconnector') failed because the hub matcher only compared the canonical slug. Hub_Manager::get_plugin_data() now also matches download_tag and github_name, so has_access()/notice removal work for legacy-slug add-ons.
@kimo-works
kimo-works requested a review from JurriaanK July 14, 2026 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants