Skip to content

Updated WordPress 7.0 - #496

Open
murshed wants to merge 1 commit into
WordPress:masterfrom
murshed:master
Open

Updated WordPress 7.0#496
murshed wants to merge 1 commit into
WordPress:masterfrom
murshed:master

Conversation

@murshed

@murshed murshed commented Jul 20, 2026

Copy link
Copy Markdown
  • 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

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.css instead 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.

Comment thread checks/class-i18n-check.php
Comment thread checks/class-style-css-header-check.php
@kafleg

kafleg commented Aug 21, 2026

Copy link
Copy Markdown
Member

@murshed Can you explain how to check this PR? Please explain step by step so that we can review this PR before merging.

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.

3 participants