[wp-trac] [WordPress Trac] #38583: Support for objects in schema validation and sanitization
WordPress Trac
noreply at wordpress.org
Mon Oct 23 18:03:13 UTC 2017
#38583: Support for objects in schema validation and sanitization
----------------------------------------+-----------------------
Reporter: rachelbaker | Owner: rmccue
Type: enhancement | Status: reopened
Priority: high | Milestone: 4.9
Component: REST API | Version: 4.7
Severity: major | Resolution:
Keywords: has-unit-tests needs-patch | Focuses:
----------------------------------------+-----------------------
Comment (by TimothyBlynJacobs):
We also currently allow non listed properties for the top-level object.
> And I think there's a lot of those, right?
I don't think there are. The objects in core currently have the
`validation_callback` disabled now because they accept both a simple
string and a complex object.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38583#comment:32>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list