#60214 closed defect (bug) (fixed)
Fix var types of parameters in `sanitize_option_{$option}` filter
| Reported by: | crstauf | Owned by: | audrasjb |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.5 |
| Component: | General | Version: | |
| Severity: | normal | Keywords: | has-patch commit |
| Cc: | Focuses: | docs |
Description
The documentation is defining
$valueand$original_valueas if they were of typestring, but they are very often of typearray.
Reported by @gerardreches via User Contributed Notes.
Change History (7)
This ticket was mentioned in PR #5848 on WordPress/wordpress-develop by @crstauf.
3 years ago
#1
- Keywords has-patch added
#2
@
3 years ago
- Owner set to
- Status new → reviewing
Thanks for the ticket! Self assigning for review.
#3
@
3 years ago
- Keywords commit added
- Milestone Awaiting Review → 6.5
- Status reviewing → accepted
Using mixed looks good to me since the value can be anything: worth not listing all possible types here.
Moving for 6.5 consideration.
@mukesh27 commented on PR #5848:
3 years ago
#4
@crstauf left one minor question for clarification. Thanks!
@audrasjb commented on PR #5848:
2 years ago
#7
Committed in https://core.trac.wordpress.org/changeset/57302
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Fixes the documentation of the parameters used in
sanitize_option_{$option}filter.Reported by
gerardrechesvia User Contributed Notes.Trac ticket: https://core.trac.wordpress.org/ticket/60214