Updated WordPress 7.0 - #496
Open
murshed wants to merge 1 commit into
Open
Conversation
murshed
commented
Jul 20, 2026
- Fix: Ensure standard translation checks (I18N) are not bypassed when Polylang functions are present in the same file.
- Fix: Target the theme's main style.css file for header checks rather than parsing combined CSS text.
- Update: Verified compatibility with PHP 8.5+.
- Tested with WordPress 7.0.2
* Fix: Ensure standard translation checks (I18N) are not bypassed when Polylang functions are present in the same file. * Fix: Target the theme's main style.css file for header checks rather than parsing combined CSS text. * Update: Verified compatibility with PHP 8.5+. * Tested with WordPress 7.0.2
There was a problem hiding this comment.
Pull request overview
Updates Theme Check’s metadata for a new release and adjusts two checks to behave correctly with Polylang usage and theme header parsing.
Changes:
- Bump plugin version/stable tag and update “Tested up to” metadata to WordPress 7.0.2.
- Fix I18N scan logic so Polylang functions don’t disable standard translation checks across an entire file.
- Update the style.css header check to target the theme’s primary
style.cssinstead of concatenating all CSS content.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| theme-check.php | Bumps plugin version to 20260720. |
| readme.txt | Updates contributor list, “Tested Up To”, and stable tag. |
| checks/class-style-css-header-check.php | Selects the theme’s primary style.css for header validation, with fallbacks. |
| checks/class-i18n-check.php | Refines translation-call scanning so Polylang usage doesn’t bypass standard checks. |
| changelog.txt | Adds release notes for 20260720. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Member
|
@murshed Can you explain how to check this PR? Please explain step by step so that we can review this PR before merging. |
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.