-
Notifications
You must be signed in to change notification settings - Fork 382
WordPress Coding Standards 2.0 Compatibility #1859
Copy link
Copy link
Closed
Labels
P2Low priorityLow priority
Milestone
Description
From the 2.0.0 changelog:
The
WordPress.Security.NonceVerificationsniff used the same error code for both an error as well as a warning.
The old error codeNoNonceVerificationis no longer used.
The error now uses theMissingerror code, while the warning now uses theRecommendederror code.
If you are referencing the old error code in a ruleset XML file or in inline annotations, please update these to use the new codes instead.
So instead of // phpcs:ignore WordPress.Security.NonceVerification.NoNonceVerification we now need to write // phpcs:ignore WordPress.Security.NonceVerification.Recommended or // phpcs:ignore WordPress.Security.NonceVerification.Missing
Related: #1814
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P2Low priorityLow priority