Automattic / Automattic/VIP-Coding-Standards

flag esc_* inside <script> tag

Open
#113 6 comments 0 reactions 0 assignees View on GitHub
Status: Has PR Type: Enhancement
Dominant language
PHP
Stars
261
Forks
44
Avg merge
19m
Merged PRs (30d)
1

Description

It's almost always meant to be `wp_json_encode`

Contributor guide

Open the contributing guide

Research direction

Start by locating the rule that handles esc_* calls inside tags and review its existing tests or fixtures. Confirm how wp_json_encode is represented in this ruleset, then define the expected diagnostic behavior and add coverage showing that the intended case is handled correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.