[wp-trac] [WordPress Trac] #38531: Support for arrays in schema validation and sanitization
WordPress Trac
noreply at wordpress.org
Wed Nov 9 22:37:13 UTC 2016
#38531: Support for arrays in schema validation and sanitization
-------------------------+-----------------------
Reporter: joehoyle | Owner: joehoyle
Type: enhancement | Status: assigned
Priority: normal | Milestone: 4.7
Component: REST API | Version:
Severity: normal | Resolution:
Keywords: 2nd-opinion | Focuses:
-------------------------+-----------------------
Comment (by joehoyle):
Updated patch with:
- Unit tests for validation and sanitization of post meta fields.
- `WP_REST_Meta_Fields` will now validate and sanitize meta values from
the schema.
- `WP_REST_Meta_Fields::get_value` will now return an array rather than
object. This is consistent with other "objects" in API responses, such as
`content` on Posts.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38531#comment:26>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list