Automattic / Automattic/VIP-Coding-Standards

Callback functions for add_menu_page() should enforce credential-checks

Open
#85 1 comment 0 reactions 0 assignees View on GitHub
Type: Enhancement
Dominant language
PHP
Stars
261
Forks
44
Avg merge
19m
Merged PRs (30d)
1

Description

All callback functions for `add_menu_page()` (argument `$function`) should enforce credential-checks, as that is not done automatically (see: https://developer.wordpress.org/reference/functions/add_menu_page/#notes).

Contributor guide

Open the contributing guide

Research direction

Start with the add_menu_page() entry point and read the linked WordPress documentation, especially the notes about the $function callback and credential checks. Then inspect the repository's existing PHP_CodeSniffer rules and tests to determine where this check belongs; done means callbacks passed to add_menu_page() are flagged when credential checks are absent.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
security, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.