[wp-trac] [WordPress Trac] #38531: Support for arrays in schema validation and sanitization
WordPress Trac
noreply at wordpress.org
Mon Nov 7 21:33:48 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):
Attached are unit tests with post meta tests included - they work slightly
differently so need separate tests.
In `test_type_array_is_associative` the schema isn't correct for what the
value is but it's an error people might make and sanitization and
validation aren't working correctly with that incorrect type.
Use this patch for unit tests instead of the previous one as I corrected
some other bits too.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38531#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list