From 9b2ed59437441459adae547cac32b3a31d1a9d30 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 8 Oct 2023 13:07:46 +0000 Subject: [PATCH] Coding Standards: Upgrade WPCS to version 3.0.1. In WordPressCS 3.0.0, the functionality of the `WordPress.Security.EscapeOutput` sniff was updated to report unescaped message parameters passed to exceptions created in `throw` statements. This specific violation now has a separate error code: `ExceptionNotEscaped`. This will allow users to ignore or exclude that specific error code. The error code(s) for other escaping issues flagged by the sniff remain unchanged. References: * [https://github.com/WordPress/WordPress-Coding-Standards/releases/tag/3.0.1 WPCS 3.0.1 release notes] * [https://github.com/WordPress/WordPress-Coding-Standards/compare/3.0.0...3.0.1 Full list of changes in WPCS 3.0.1] Follow-up to [56695]. Props jrf, bjorsch, dawidurbanski. See #59161. git-svn-id: https://develop.svn.wordpress.org/trunk@56799 602fd350-edb4-49c9-b593-d223f7449a82 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 95cffb279a..750952457f 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ }, "require-dev": { "squizlabs/php_codesniffer": "3.7.2", - "wp-coding-standards/wpcs": "~3.0.0", + "wp-coding-standards/wpcs": "~3.0.1", "phpcompatibility/phpcompatibility-wp": "~2.1.3", "yoast/phpunit-polyfills": "^1.1.0" },