WordPress/wp-includes/rest-api/endpoints
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
..
class-wp-rest-attachments-controller.php REST API: Support for objects in schema validation and sanitization. 2017-10-04 08:27:47 +00:00
class-wp-rest-comments-controller.php REST API: Avoid counting an uncountable type when checking read permissions for comment posts. 2017-10-04 15:38:49 +00:00
class-wp-rest-controller.php REST API: Don’t remove unregistered properties from objects in schema. 2017-10-24 21:05:49 +00:00
class-wp-rest-post-statuses-controller.php REST API: Specify specific json-schema version. 2017-10-04 14:52:46 +00:00
class-wp-rest-post-types-controller.php REST API: Specify specific json-schema version. 2017-10-04 14:52:46 +00:00
class-wp-rest-posts-controller.php REST API: Allow passing existing template value for posts even when template no longer exists. 2017-10-23 22:11:46 +00:00
class-wp-rest-revisions-controller.php REST API: Specify specific json-schema version. 2017-10-04 14:52:46 +00:00
class-wp-rest-settings-controller.php REST API: Don’t remove unregistered properties from objects in schema. 2017-10-24 21:05:49 +00:00
class-wp-rest-taxonomies-controller.php REST API: Specify specific json-schema version. 2017-10-04 14:52:46 +00:00
class-wp-rest-terms-controller.php REST API: Support ordering response collection by listed slugs. 2017-10-05 00:37:47 +00:00
class-wp-rest-users-controller.php REST API: Support ordering response collection by listed slugs. 2017-10-05 00:37:47 +00:00