2.2.1
版本发布时间: 2020-02-04 11:05:24
WordPress/WordPress-Coding-Standards最新发布版本:3.1.0(2024-03-26 00:44:32)
Added
- Metrics to the
WordPress.Arrays.CommaAfterArrayItem
sniff. These can be displayed using--report=info
. - The
sanitize_hex_color()
and thesanitize_hex_color_no_hash()
functions to theescapingFunctions
list used by theWordPress.Security.EscapeOutput
sniff.
Changed
- The recommended version of the suggested DealerDirect PHPCS Composer plugin is now
^0.6
.
Fixed
-
WordPress.PHP.NoSilencedErrors
: depending on the custom properties set, the metrics would be different. -
WordPress.WhiteSpace.ControlStructureSpacing
: fixed undefined index notice for closures withuse
. -
WordPress.WP.GlobalVariablesOverride
: fixed undefined offset notice when thetreat_files_as_scoped
property would be set totrue
. -
WordPress.WP.I18n
: fixed a Trying to access array offset on value of type null error when the sniff was run on PHP 7.4 and would encounter a translation function expecting singular and plural texts for which one of these arguments was missing.