Skip to content

WordPress Coding Standards 2.0 Compatibility #1859

@swissspidy

Description

@swissspidy

From the 2.0.0 changelog:

The WordPress.Security.NonceVerification sniff used the same error code for both an error as well as a warning.
The old error code NoNonceVerification is no longer used.
The error now uses the Missing error code, while the warning now uses the Recommended error 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Low priority

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions