Automattic / Automattic/VIP-Coding-Standards
flag esc_* inside <script> tag
Open
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
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