Skip to content

Commit cf2cffe

Browse files
authored
Merge pull request #2438 from WordPress/feature/changelog-release-3.1.0
Changelog for the release of WordPressCS 3.1.0
2 parents fe959de + 87ab204 commit cf2cffe

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

CHANGELOG.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,36 @@ This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a
88

99
_No documentation available about unreleased changes as of yet._
1010

11+
## [3.1.0] - 2024-03-25
12+
13+
### Added
14+
- WordPress-Core ruleset: now includes the `Universal.PHP.LowercasePHPTag` sniff.
15+
- WordPress-Extra ruleset: now includes the `Generic.CodeAnalysis.RequireExplicitBooleanOperatorPrecedence` and the `Universal.CodeAnalysis.NoDoubleNegative` sniffs.
16+
- The `sanitize_locale_name()` function to the list of known "escaping" functions. Props [@Chouby]
17+
- The `sanitize_locale_name()` function to the list of known "sanitize & unslash" functions. Props [@Chouby]
18+
19+
### Changed
20+
21+
- The minimum required `PHP_CodeSniffer` version to 3.9.0 (was 3.7.2).
22+
- The minimum required `PHPCSUtils` version to 1.0.10 (was 1.0.8).
23+
- The minimum required `PHPCSExtra` version to 1.2.1 (was 1.1.0).
24+
Please ensure you run `composer update wp-coding-standards/wpcs --with-dependencies` to benefit from these updates.
25+
- Core ruleset: the spacing after the `use` keyword for closure `use` statements will now consistently be checked. Props [@westonruter] for reporting.
26+
- The default value for `minimum_wp_version`, as used by a [number of sniffs detecting usage of deprecated WP features](https://github.com/WordPress/WordPress-Coding-Standards/wiki/Customizable-sniff-properties#various-sniffs-set-the-minimum-supported-wp-version), has been updated to `6.2`.
27+
- `WordPress.NamingConventions.PrefixAllGlobals` has been updated to recognize pluggable functions introduced in WP 6.4 and 6.5.
28+
- `WordPress.NamingConventions.ValidPostTypeSlug` has been updated to recognize reserved post types introduced in WP 6.4 and 6.5.
29+
- `WordPress.WP.ClassNameCase` has been updated to recognize classes introduced in WP 6.4 and 6.5.
30+
- `WordPress.WP.DeprecatedClasses` now detects classes deprecated in WordPress up to WP 6.5.
31+
- `WordPress.WP.DeprecatedFunctions` now detects functions deprecated in WordPress up to WP 6.5.
32+
- The `IsUnitTestTrait` will now recognize classes which extend the new WP Core `WP_Font_Face_UnitTestCase` class as test classes.
33+
- The test suite can now run on PHPUnit 4.x - 9.x (was 4.x - 7.x), which should make contributing more straight forward.
34+
- Various housekeeping, includes a contribution from [@rodrigoprimo].
35+
36+
### Fixed
37+
38+
- `WordPress.WP.PostsPerPage` could potentially result in an `Internal.Exception` when encountering a query string which doesn't include the value for `posts_per_page` in the query string. Props [@anomiex] for reporting.
39+
40+
1141
## [3.0.1] - 2023-09-14
1242

1343
### Added
@@ -1571,8 +1601,10 @@ See the comparison for full list.
15711601
Initial tagged release.
15721602

15731603
[Composer PHPCS plugin]: https://github.com/PHPCSStandards/composer-installer
1604+
[PHP_CodeSniffer]: https://github.com/PHPCSStandards/PHP_CodeSniffer
15741605

15751606
[Unreleased]: https://github.com/WordPress/WordPress-Coding-Standards/compare/main...HEAD
1607+
[3.1.0]: https://github.com/WordPress/WordPress-Coding-Standards/compare/3.0.1...3.1.0
15761608
[3.0.1]: https://github.com/WordPress/WordPress-Coding-Standards/compare/3.0.0...3.0.1
15771609
[3.0.0]: https://github.com/WordPress/WordPress-Coding-Standards/compare/2.3.0...3.0.0
15781610
[2.3.0]: https://github.com/WordPress/WordPress-Coding-Standards/compare/2.2.1...2.3.0
@@ -1604,6 +1636,7 @@ Initial tagged release.
16041636
[2013-10-06]: https://github.com/WordPress/WordPress-Coding-Standards/compare/2013-06-11...2013-10-06
16051637

16061638
[@anomiex]: https://github.com/anomiex
1639+
[@Chouby]: https://github.com/Chouby
16071640
[@ckanitz]: https://github.com/ckanitz
16081641
[@craigfrancis]: https://github.com/craigfrancis
16091642
[@dawidurbanski]: https://github.com/dawidurbanski
@@ -1615,5 +1648,7 @@ Initial tagged release.
16151648
[@Luc45]: https://github.com/Luc45
16161649
[@marconmartins]: https://github.com/marconmartins
16171650
[@NielsdeBlaauw]: https://github.com/NielsdeBlaauw
1651+
[@rodrigoprimo]: https://github.com/rodrigoprimo
16181652
[@slaFFik]: https://github.com/slaFFik
16191653
[@sandeshjangam]: https://github.com/sandeshjangam
1654+
[@westonruter]: https://github.com/westonruter

0 commit comments

Comments
 (0)