Skip to content

Compat Checker: read Tested up to from readme.txt - #275

Merged
NeosinneR merged 1 commit into
trunkfrom
fix/compat-checker-readme-tested-up-to
Oct 1, 2026
Merged

NeosinneR merged 1 commit into
trunkfrom
fix/compat-checker-readme-tested-up-to

Conversation

@NeosinneR

Copy link
Copy Markdown
Member

Part of STORMA-263 and PIN4WOO-184

Changes proposed in this Pull Request:

  • Plugin Check now reports a Tested up to header in the main plugin file as an error (plugin_header_tested_up_to_not_allowed), because WordPress reads that value from readme.txt only. Extensions that removed the header, like Coupon Campaigns and Pinterest on trunk, got a false "untested with WordPress 7.1" admin notice from the compat checker. On Coupon Campaigns, that notice also breaks QIT's core product-reviews E2E test.
  • When the header is missing, the checker now reads Tested up to from the plugin's readme.txt. A header value, if present, still takes precedence.

Detailed test instructions:

  1. In a plugin that uses the checker, remove Tested up to from the main file and keep Tested up to: 7.1 in readme.txt, on WordPress 7.1.
  2. On trunk, wp-admin shows "… is untested with WordPress 7.1". On this branch it doesn't. Bump the plugin version, or clear the wc_grow_compat_checker_* transient, because plugin data is cached per version.
  3. Set the readme to Tested up to: 6.8. The notice comes back.

Verified with wp eval-file on WordPress 7.1.2 (TestedWP / notice):

Plugin trunk this branch
readme.txt only (7.1) '' / shown 7.1 / not shown
header 6.8, readme 7.1 6.8 / shown 6.8 / shown
no header, no readme '' / shown '' / shown
readme only (6.8) '' / shown 6.8 / shown

Additional details:

Consumers pick this up with composer update woocommerce/grow once it's published to the compat-checker branch.

🤖 Generated with Claude Code

https://claude.ai/code/session_01UjpEpLbUmxA2wpbyS3uX9L

Plugin Check now rejects a Tested up to header in the main plugin file, so
extensions that drop it got a false "untested with WordPress" notice.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UjpEpLbUmxA2wpbyS3uX9L
@NeosinneR
NeosinneR marked this pull request as ready for review September 29, 2026 06:44
@NeosinneR
NeosinneR merged commit 8bc4932 into trunk Oct 1, 2026
1 check passed
@NeosinneR
NeosinneR deleted the fix/compat-checker-readme-tested-up-to branch October 1, 2026 22:07
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.

1 participant