Opened 13 months ago
Last modified 13 months ago
#57021 new enhancement
Sanitize should accept broader types
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 6.2 |
Component: | Formatting | Keywords: | has-patch |
Focuses: | coding-standards | Cc: |
Description
by default $_GET/$_POST can be string|array type.
All sanitize functions accept only string, which makes it necessary to validate $_GET/$_POST for is_string
all the time before calling sanitize function to avoid PHP notices.
Instead sanitize function should accept mixed param and validate string internally.
Change History (1)
This ticket was mentioned in PR #3576 on WordPress/wordpress-develop by @kkmuffme.
13 months ago
#1
- Keywords has-patch added
Note: See
TracTickets for help on using
tickets.
Trac ticket: https://core.trac.wordpress.org/ticket/57021