Skip to content

Require WordPressCS 3.4.1 and align dependency floors - #892

Merged
GaryJones merged 1 commit into
developfrom
GaryJones/update-wpcs-dependency-341
Jul 27, 2026
Merged

Require WordPressCS 3.4.1 and align dependency floors#892
GaryJones merged 1 commit into
developfrom
GaryJones/update-wpcs-dependency-341

Conversation

@GaryJones

Copy link
Copy Markdown
Contributor

Summary

WordPressCS 3.4.1 is a security release (advisory GHSA-3pwp-g2mj-5p3v), and the 3.3.0–3.4.1 line also brings a number of accuracy improvements to WordPressCS sniffs that VIPCS bundles and runs. Raising the minimum requirement passes both on to VIPCS users.

The vulnerability itself is in the WordPress.WP.EnqueuedResourceParameters sniff, which neither VIPCS ruleset enables, so this does not change VIPCS' own behaviour. It is a dependency-hygiene bump: it removes the affected WordPressCS releases from users' dependency trees and protects anyone who additionally runs the WordPress or WordPress-Extra standards.

The remaining coding-standard floors are raised in step to match what WordPressCS 3.4.1 itself requires — PHP_CodeSniffer 3.13.5, PHPCSUtils 1.2.3 and PHPCSExtra 1.5.1 — along with VariableAnalysis 2.13.0. The README "Minimal requirements" and the PHPCompatibility testVersion (now 7.4-, matching the existing PHP floor) are brought back into sync, as both had drifted from composer.json.

This is the dependency portion of the 3.1.0 release; the changelog will follow on the release branch.

Test plan

  • composer update resolves WordPressCS 3.4.1, PHP_CodeSniffer 3.13.5, PHPCSUtils 1.2.3, PHPCSExtra 1.5.1 and VariableAnalysis 2.13.0
  • composer test-ruleset, composer test, composer feature-completeness and composer cs all pass
  • composer audit reports no advisories

WordPressCS 3.4.1 is a security release, and 3.3.0-3.4.1 also improve
the accuracy of several sniffs that VIPCS bundles, so requiring it
passes both benefits on to VIPCS users.

The other coding-standard floors are raised in step to match what
WordPressCS 3.4.1 itself requires: PHP_CodeSniffer 3.13.5, PHPCSUtils
1.2.3, PHPCSExtra 1.5.1 and VariableAnalysis 2.13.0.

The README requirements and the PHPCompatibility testVersion (now 7.4-,
matching the existing PHP floor) are brought back into sync, as both
had drifted from composer.json.
@GaryJones
GaryJones requested a review from a team as a code owner July 27, 2026 13:52
@GaryJones GaryJones added this to the 3.1.0 milestone Jul 27, 2026
@GaryJones
GaryJones merged commit 0ecf92e into develop Jul 27, 2026
26 checks passed
@GaryJones
GaryJones deleted the GaryJones/update-wpcs-dependency-341 branch July 27, 2026 14:21
This was referenced Jul 27, 2026
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