You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+35Lines changed: 35 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,36 @@ This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a
8
8
9
9
_No documentation available about unreleased changes as of yet._
10
10
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
+
11
41
## [3.0.1] - 2023-09-14
12
42
13
43
### Added
@@ -1571,8 +1601,10 @@ See the comparison for full list.
0 commit comments