WordPress/wp-includes/rest-api
Joe Hoyle bebb0b0d82 REST API: Don’t remove unregistered properties from objects in schema.
In r41727 the ability to sanitise and validate objects from JSON schema was added, with a whitelist approach. It was decided we should pass through all non-registered properties to reflect the behaviour of the root object in register_rest_route. To prevent arbitrary extra data via setting objects, we force additionalProperties to false in the settings endpoint.

See #38583.
Built from https://develop.svn.wordpress.org/trunk@42000


git-svn-id: http://core.svn.wordpress.org/trunk@41834 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-24 21:05:49 +00:00
..
endpoints REST API: Don’t remove unregistered properties from objects in schema. 2017-10-24 21:05:49 +00:00
fields
class-wp-rest-request.php
class-wp-rest-response.php
class-wp-rest-server.php REST API: Exclude numeric parameters from regex parsing 2017-08-03 19:55:43 +00:00