Automattic / Automattic/custom-metadata
Default to sanitize_text_field as the sanitize_callback
Open
enhancement
- Dominant language
- PHP
- Stars
- 190
- Forks
- 46
- Avg merge
- 46m
- Merged PRs (30d)
- 15
Description
If a sanitize callback is not set, we should default to sanitize_text_field. Maybe only in contexts where unfiltered_html is not allowed.
Contributor guide
Research direction
Start by locating where sanitize_callback defaults are selected and how the plugin handles contexts where unfiltered_html is not allowed. Review any existing sanitization tests and compare omitted callbacks with explicitly supplied callbacks. Done means the intended default behavior and its coverage are settled for both security contexts.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend, security
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 32/100