2.1.1
版本发布时间: 2019-05-21 10:59:04
WordPress/WordPress-Coding-Standards最新发布版本:3.1.0(2024-03-26 00:44:32)
Changed
- The
WordPress.WP.CapitalPDangit
will now ignore misspelled instances ofWordPress
within constant declarations. This covers both constants declared usingdefined()
as well as constants declared using theconst
keyword. - The default value for
minimum_supported_wp_version
, as used by a number of sniffs detecting usage of deprecated WP features, has been updated to4.9
.
Removed
-
paginate_comments_links()
from the list of auto-escaped functionsSniff::$autoEscapedFunctions
. This affects theWordPress.Security.EscapeOutput
sniff.
Fixed
- The
$current_blog
and$tag_ID
variables have been added to the list of WordPress global variables. This fixes some false positives from theWordPress.NamingConventions.PrefixAllGlobals
and theWordPress.WP.GlobalVariablesOverride
sniffs. - The generic
TestCase
class name has been added to the$test_class_whitelist
. This fixes some false positives from theWordPress.NamingConventions.FileName
,WordPress.NamingConventions.PrefixAllGlobals
and theWordPress.WP.GlobalVariablesOverride
sniffs. - The
WordPress.NamingConventions.ValidVariableName
sniff will now correctly recognize$tag_ID
as a WordPress native, mixed-case variable. - The
WordPress.Security.NonceVerification
sniff will now correctly recognize nonce verification within a nested closure or anonymous class.