[wp-trac] [WordPress Trac] #38531: Support for arrays in schema validation and sanitization
WordPress Trac
noreply at wordpress.org
Mon Nov 7 15:28:44 UTC 2016
#38531: Support for arrays in schema validation and sanitization
-------------------------+--------------------------
Reporter: joehoyle | Owner: rachelbaker
Type: enhancement | Status: assigned
Priority: normal | Milestone: 4.7
Component: REST API | Version:
Severity: normal | Resolution:
Keywords: 2nd-opinion | Focuses:
-------------------------+--------------------------
Comment (by tharsheblows):
Unit tests showing unknown types falling through validation and
sanitization. nb: I'm not exactly sure what the sanitization return value
should be and have not included `'type' => 'object'` because I'm not sure
how that should be handled.
Currently validating / sanitizing php associative arrays work with a
schema `'type' => 'array'` even though they're json objects. Not sure if
that's an issue or will be confusing but thought I'd mention.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38531#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list