WordPress/wp-includes/rest-api/endpoints
Rachel Baker 4a37a04d0f REST API: Return WP_Error when a client is attempting to update an option with a non-scalar value to null.
A `null` value is returned in the response for any option that has a non-scalar value.

To protect clients from accidentally including the `null` values from a response object in a request, we do not allow options with non-scalar values to be updated to `null`. Without this added protection a client could mistakenly delete all options that have non-scalar values from the database.

Props joehoyle, rachelbaker.
Fixes #38527.
Built from https://develop.svn.wordpress.org/trunk@38982


git-svn-id: http://core.svn.wordpress.org/trunk@38925 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-10-27 16:08:45 +00:00
..
class-wp-rest-attachments-controller.php
class-wp-rest-comments-controller.php
class-wp-rest-controller.php
class-wp-rest-post-statuses-controller.php
class-wp-rest-post-types-controller.php
class-wp-rest-posts-controller.php REST API: Remove experimental filter wrapper parameter from the Posts Controller class. 2016-10-26 21:37:31 +00:00
class-wp-rest-revisions-controller.php
class-wp-rest-settings-controller.php REST API: Return WP_Error when a client is attempting to update an option with a non-scalar value to null. 2016-10-27 16:08:45 +00:00
class-wp-rest-taxonomies-controller.php
class-wp-rest-terms-controller.php REST API: Use wp_get_object_terms() when fetching terms for a post object. 2016-10-27 01:42:32 +00:00
class-wp-rest-users-controller.php REST API: Remove the Location header redirect for the /users/me endpoint. 2016-10-27 14:37:36 +00:00