Skip to content

Commit

Permalink
Update CHANGELOG.md
Browse files Browse the repository at this point in the history
Co-authored-by: Juliette <[email protected]>
  • Loading branch information
dingo-d and jrfnl authored Sep 13, 2023
1 parent 0ac5658 commit 1ff9535
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ _No documentation available about unreleased changes as of yet._

### Added

- In the WordPressCS v3.0.0, the functionality of the `WordPress.Security.EscapeOutput` sniff was changed to flag the unescaped parameters passed to exceptions in the `throw` statements. This sniff now has more modular error codes based on whether the error happened while checking the exceptions or while outputting unescaped content. The error code has only changed for the exceptions case (now `ExceptionNotEscaped`), and not the rest of the sniff (still `OutputNotEscaped`). This will enable the users to silence the error based on the error code if they need to.
- Props [@anomiex].
- In the WordPressCS v3.0.0, the functionality of the `WordPress.Security.EscapeOutput` sniff was updated to also flag unescaped parameters passed to exceptions created in `throw` statements. This specific error now has a separate error code: `ExceptionNotEscaped`. This will allow users to ignore/exclude that specific error based on the error code if they need to. Props [@anomiex].
The error code(s) for other escaping issues flagged by the sniff remain unchanged.

### Changed

Expand Down

0 comments on commit 1ff9535

Please sign in to comment.