Skip to content

Commit 1f525cc

Browse files
authored
Merge pull request #1893 from WordPress/feature/changelog-2.3.0
Changelog for WPCS 2.3.0
2 parents e1c648d + d5e3cd9 commit 1f525cc

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

CHANGELOG.md

+18
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,24 @@ 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+
## [2.3.0] - 2020-05-14
12+
13+
### Added
14+
- The `WordPress.WP.I18n` sniff contains a new check for translatable text strings which are wrapped in HTML tags, like `<h1>Translate me</h1>`. Those tags should be moved out of the translatable string.
15+
Note: Translatable strings wrapped in `<a href..>` tags where the URL is intended to be localized will not trigger this check.
16+
17+
### Changed
18+
- The default value for `minimum_supported_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#minimum-wp-version-to-check-for-usage-of-deprecated-functions-classes-and-function-parameters), has been updated to `5.1`.
19+
- The `WordPress.WP.DeprecatedFunctions` sniff will now detect functions deprecated in WP 5.4.
20+
- Improved grammar of an error message in the `WordPress.WP.DiscouragedFunctions` sniff.
21+
- CI: The codebase is now - preliminary - being tested against the PHPCS 4.x development branch.
22+
23+
### Fixed
24+
- All function call detection sniffs: fixed a bug where constants with the same name as one of the targeted functions could inadvertently be recognized as if they were a called function.
25+
- `WordPress.DB.PreparedSQL`: fixed a bug where the sniff would trigger on the namespace separator character `\\`.
26+
- `WordPress.Security.EscapeOutput`: fixed a bug with the variable replacement in one of the error messages.
27+
28+
1129
## [2.2.1] - 2020-02-04
1230

1331
### Added

0 commit comments

Comments
 (0)