wp-coding-standards/wpcs breaking changes
wp-coding-standards/wpcs 3.0.0 (August 21, 2023) is its newest release with breaking changes, 179 of them. The first: Old-style WordPressCS ignore annotations removed in wp-coding-standards/wpcs 3.0.0. Every breaking API change we have recorded in wp-coding-standards/wpcs on Packagist: 179 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 3.4.1, released July 27, 2026. MIT license. Source repository
Packages on Packagist run on PHP. PHP end of life dates.
wp-coding-standards/wpcs 3.0.0 breaking changes
- Removed
Support for the old WordPressCS-native ignore comments is gone. Replace them with PHPCS native selective ignore annotations such as // phpcs:ignore. github.com - Removed
Old-style WordPressCS ignore annotations are no longer supported. Switch to the PHPCS native selective ignore annotations. github.com - Removed
check_translator_comments
Exclude the MissingTranslatorsComment and TranslatorsCommentWrongStyle error codes instead of using this property. github.com - Removed
Generic.Arrays.DisallowShortArraySyntax
The Generic sniff is replaced by Universal.Arrays.DisallowShortArraySyntax, which ignores short lists. github.com - Removed
Generic.Files.EndFileNewline
The Generic sniff is replaced by PSR2.Files.EndFileNewline. github.com - Removed
spaces_before_closure_open_paren
The property is removed along with the function declaration checks in ControlStructureSpacing. github.com - Removed
Squiz.WhiteSpace.LanguageConstructSpacing
The sniff is removed from WordPress-Extra. Generic.WhiteSpace.LanguageConstructSpacing in WordPress-Core replaces it. github.com - Removed
WordPress.Arrays.ArrayDeclarationSpacing
The array brace spacing checks are removed. Use NormalizedArrays.Arrays.ArrayBraceSpacing instead. github.com - Removed
WordPress.Arrays.ArrayKeySpacingRestrictions.MissingBracketCloser
The error code is removed because sniffs should not report on parse errors. github.com - Removed
WordPress.Arrays.CommaAfterArrayItem
The sniff is removed. Use NormalizedArrays.Arrays.CommaAfterLast and Universal.WhiteSpace.CommaSpacing instead. github.com - Removed
WordPress.Classes.ClassInstantiation
The sniff is removed. Use PSR12.Classes.ClassInstantiation, Universal.Classes.RequireAnonClassParentheses and Universal.WhiteSpace.AnonClassKeywordSpacing instead. github.com - Removed
WordPress.CodeAnalysis.AssignmentInCondition
The sniff is removed. Use Generic.CodeAnalysis.AssignmentInCondition and WordPress.CodeAnalysis.AssignmentInTernaryCondition instead. github.com - Removed
WordPress.CodeAnalysis.AssignmentInCondition.NonVariableAssignmentFound
The NonVariableAssignmentFound error code no longer exists. github.com - Removed
WordPress.CodeAnalysis.EmptyStatement
The sniff is removed. Use Generic.CodeAnalysis.EmptyPHPStatement instead. github.com - Removed
WordPress.PHP.DisallowShortTernary
The sniff is removed. Use Universal.Operators.DisallowShortTernary instead. github.com - Removed
WordPress.PHP.StrictComparisons
The sniff is removed. Use Universal.Operators.StrictComparisons instead. github.com - Removed
WordPress.WhiteSpace.ControlStructureSpacing
The function declaration spacing checks are removed. Use Squiz.Functions.MultiLineFunctionDeclaration instead. github.com - Removed
WordPress.WhiteSpace.ControlStructureSpacing.spaces_before_closure_open_paren
Closures must now have exactly one space between the function keyword and the open parenthesis; the property is no longer configurable. github.com - Removed
WordPress.WhiteSpace.DisallowInlineTabs
The sniff is removed. Use Universal.WhiteSpace.DisallowInlineTabs instead. github.com - Removed
WordPress.WhiteSpace.PrecisionAlignment
The sniff is removed. Use Universal.WhiteSpace.PrecisionAlignment instead. github.com - Removed
WordPress.WP.I18n.check_translator_comments
Exclude the WordPress.WP.I18n.MissingTranslatorsComment and WordPress.WP.I18n.TranslatorsCommentWrongStyle error codes instead. github.com - Removed
WordPress.WP.TimezoneChange
The sniff was already deprecated and is now removed. Use WordPress.DateTime.RestrictedFunctions instead. github.com - Removed
WordPressCS\WordPress\PHPCSHelper
Extenders must use PHPCSUtils\BackCompat\Helper instead. packagist.org - Removed
WordPressCS\WordPress\PHPCSHelper.get_config_data
Use the PHPCSUtils replacement method instead. github.com - Removed
WordPressCS\WordPress\Sniff.$input_superglobals
In most cases, use the PHPCSUtils isSuperglobalName() method instead. github.com - Removed
WordPressCS\WordPress\Sniff.addFixableMessage
Extenders must call PHPCSUtils\Utils\MessageHelper::addFixableMessage() instead. github.com - Removed
WordPressCS\WordPress\Sniff.addMessage
Extenders must call PHPCSUtils\Utils\MessageHelper::addMessage() instead. github.com - Removed
WordPressCS\WordPress\Sniff.has_whitelist_comment
This previously deprecated method is gone and has no replacement. github.com - Removed
WordPressCS\WordPress\Sniff.init
The method is removed with no replacement. github.com - Removed
WordPressCS\WordPress\Sniff.REGEX_COMPLEX_VARS
Use the PHPCSUtils stripEmbeds() and getEmbeds() methods instead. github.com - Removed
WordPressCS\WordPress\Sniffs\Arrays\CommaAfterArrayItemSniff
WordPressCS\WordPress\Sniffs\Arrays\CommaAfterArrayItemSniff was removed in wp-coding-standards/wpcs 3.0.0 packagist.org - Removed
WordPressCS\WordPress\Sniffs\DB\PreparedSQLSniff::$ignored_tokens
WordPressCS\WordPress\Sniffs\DB\PreparedSQLSniff::$ignored_tokens was removed in wp-coding-standards/wpcs 3.0.0 packagist.org - Removed
WordPressCS\WordPress\Sniffs\NamingConventions\PrefixAllGlobalsSniff::$prefix_blacklist
WordPressCS\WordPress\Sniffs\NamingConventions\PrefixAllGlobalsSniff::$prefix_blacklist was removed in wp-coding-standards/wpcs 3.0.0 packagist.org - Removed
WordPressCS\WordPress\Sniffs\NamingConventions\PrefixAllGlobalsSniff::$superglobals
WordPressCS\WordPress\Sniffs\NamingConventions\PrefixAllGlobalsSniff::$superglobals was removed in wp-coding-standards/wpcs 3.0.0 packagist.org - Removed
WordPressCS\WordPress\Sniffs\NamingConventions\PrefixAllGlobalsSniff::$whitelisted_core_constants
WordPressCS\WordPress\Sniffs\NamingConventions\PrefixAllGlobalsSniff::$whitelisted_core_constants was removed in wp-coding-standards/wpcs 3.0.0 packagist.org - Removed
WordPressCS\WordPress\Sniffs\NamingConventions\PrefixAllGlobalsSniff::$whitelisted_core_hooks
Use the new property name in subclasses that read or override it. packagist.org - Removed
WordPressCS\WordPress\Sniffs\NamingConventions\ValidPostTypeSlugSniff::POST_TYPE_CHARACTER_WHITELIST
WordPressCS\WordPress\Sniffs\NamingConventions\ValidPostTypeSlugSniff::POST_TYPE_CHARACTER_WHITELIST was removed in wp-coding-standards/wpcs 3.0.0 packagist.org - Removed
WordPressCS\WordPress\Sniffs\NamingConventions\ValidVariableNameSniff::$customPropertiesWhitelist
WordPressCS\WordPress\Sniffs\NamingConventions\ValidVariableNameSniff::$customPropertiesWhitelist was removed in wp-coding-standards/wpcs 3.0.0 packagist.org - Removed
WordPressCS\WordPress\Sniffs\NamingConventions\ValidVariableNameSniff::$whitelisted_mixed_case_member_var_names
WordPressCS\WordPress\Sniffs\NamingConventions\ValidVariableNameSniff::$whitelisted_mixed_case_member_var_names was removed in wp-coding-standards/wpcs 3.0.0 packagist.org - Removed
WordPressCS\WordPress\Sniffs\NamingConventions\ValidVariableNameSniff::isSnakeCase
WordPressCS\WordPress\Sniffs\NamingConventions\ValidVariableNameSniff::isSnakeCase was removed in wp-coding-standards/wpcs 3.0.0 packagist.org - Removed
WordPressCS\WordPress\Sniffs\NamingConventions\ValidVariableNameSniff::mergeWhiteList
WordPressCS\WordPress\Sniffs\NamingConventions\ValidVariableNameSniff::mergeWhiteList was removed in wp-coding-standards/wpcs 3.0.0 packagist.org - Removed
WordPressCS\WordPress\Sniffs\PHP\DisallowShortTernarySniff
WordPressCS\WordPress\Sniffs\PHP\DisallowShortTernarySniff was removed in wp-coding-standards/wpcs 3.0.0 packagist.org - Removed
WordPressCS\WordPress\Sniffs\PHP\IniSetSniff::$blacklisted_options
WordPressCS\WordPress\Sniffs\PHP\IniSetSniff::$blacklisted_options was removed in wp-coding-standards/wpcs 3.0.0 packagist.org - Removed
WordPressCS\WordPress\Sniffs\PHP\IniSetSniff::$whitelisted_options
WordPressCS\WordPress\Sniffs\PHP\IniSetSniff::$whitelisted_options was removed in wp-coding-standards/wpcs 3.0.0 packagist.org - Removed
WordPressCS\WordPress\Sniffs\PHP\NoSilencedErrorsSniff::$custom_whitelist
WordPressCS\WordPress\Sniffs\PHP\NoSilencedErrorsSniff::$custom_whitelist was removed in wp-coding-standards/wpcs 3.0.0 packagist.org - Removed
WordPressCS\WordPress\Sniffs\PHP\NoSilencedErrorsSniff::$function_whitelist
WordPressCS\WordPress\Sniffs\PHP\NoSilencedErrorsSniff::$function_whitelist was removed in wp-coding-standards/wpcs 3.0.0 packagist.org - Removed
WordPressCS\WordPress\Sniffs\PHP\NoSilencedErrorsSniff::$use_default_whitelist
Use the new property name in subclasses that read or override it. packagist.org - Removed
WordPressCS\WordPress\Sniffs\PHP\StrictComparisonsSniff
WordPressCS\WordPress\Sniffs\PHP\StrictComparisonsSniff was removed in wp-coding-standards/wpcs 3.0.0 packagist.org - Removed
WordPressCS\WordPress\Sniffs\PHP\YodaConditionsSniff::$condition_start_tokens
WordPressCS\WordPress\Sniffs\PHP\YodaConditionsSniff::$condition_start_tokens was removed in wp-coding-standards/wpcs 3.0.0 packagist.org - Removed
WordPressCS\WordPress\Sniffs\Security\EscapeOutputSniff::$addedCustomFunctions
WordPressCS\WordPress\Sniffs\Security\EscapeOutputSniff::$addedCustomFunctions was removed in wp-coding-standards/wpcs 3.0.0 packagist.org
And 129 more in this version. Sign up to see every change
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.