Repository navigation
V2: nag only when no license key is saved (2.1.0) - #27
Merged
Merged
Conversation
Remove the sitewide expired-license admin notice from V2\Admin\Notices. An expired plugin keeps working and only stops receiving updates, so a notice on every admin screen that returns weekly was more nag than help. Expiry still shows on the license page and in the plugins-list update row. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013VELFUvbdtn26TuL14hpJz
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013VELFUvbdtn26TuL14hpJz
shazzad
added a commit
that referenced
this pull request
Sep 15, 2026
…tice" This reverts commit e04c8c3. The updater is shared by many products; the expired-notice suppression moves into pimipay-wc-paddle instead. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013VELFUvbdtn26TuL14hpJz
Owner
Author
|
Reverted on main (ce7de82) and released as 2.1.1, which restores the expired-license notice exactly as in 2.0.1. The updater is shared by many products, so it doesn't change for one product. 2.1.0 was withdrawn (tag and release deleted) before any consumer picked it up. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The V2 admin notice now shows only when no license key is saved. An expired license no longer gets a sitewide notice.
Decided 2026-09-15 while testing pimipay-wc-paddle PR #67. The expired notice appeared on every admin screen (including WooCommerce → Payments) and came back weekly after dismissal. An expired plugin keeps working; only updates stop. So the notice was more nag than help.
What changes
src/V2/Admin/Notices.php: removes theexpirednotice type, its renew message, and its snooze type.TYPESis now[ 'unlicensed' ].is_covered_by_update_row).renewal_urllink)V2\Admin\UpdateMessage)get_license_status()andget_license_renewal_url()Notes
{storage}_notice_snooze_expiredoption. Nothing reads it now; it's harmless, so there's no migration.^2.1once this is tagged.2.1.0, novprefix. Not tagged; this PR is not merged.Test plan
get_notice_type()returns''.expiredtype is ignored.composer test: 213 tests, 389 assertions, OK (the same 6 risky no-assertion tests as on main).phpcs-check) is clean.composer phpcs(WordPress standard) exits non-zero, but that's pre-existing: 180 errors and 48 warnings in 13 files, identical counts onmainand this branch (Notices.php 11 errors on both).🤖 Generated with Claude Code
https://claude.ai/code/session_013VELFUvbdtn26TuL14hpJz