ValidHookNames: ignore deprecated hooks by design

Open
#1,812 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Start with the ValidHookName sniff and review the related issues #1797, #1806, and #1811 for context. Check how deprecated hooks are currently handled and identify the sniff tests covering hook-name validation; done means deprecated hooks are ignored without changing validation for other hooks.

Written by the indexing model from the issue text.

Description

Type: Enhancement

Hooks which are marked as @deprecated should be ignored for the purposes of the ValidHookName sniff.

Related: #1797, #1806, #1811

Dominant language
PHP
Stars
2.8k
Forks
521
Avg merge
5d 20h
Merged PRs (30d)
1

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.

More from WordPress/WordPress-Coding-Standards

All issues in WordPress/WordPress-Coding-Standards

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.