WordPress / WordPress/plugin-check

Add filter to customize PHPCS nonce check config

Open
#901 0 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Type] Enhancement
Dominant language
PHP
Stars
362
Forks
126
Avg merge
1d 23h
Merged PRs (30d)
22

Description

See https://github.com/WordPress/plugin-check-action/issues/288 for original request

We could add a filter to allow setting things like customNonceVerificationFunctions, customSanitizingFunctions and customUnslashingSanitizingFunctions.

If there's already a suitable filter, we should document this use case.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the original request in plugin-check-action issue 288 and locate the PHPCS nonce-check configuration handling. Check whether a suitable filter already exists; done means the named customNonceVerificationFunctions, customSanitizingFunctions, and customUnslashingSanitizingFunctions settings can be customized, with the use case documented if applicable.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.