Wordpress/tests
Rachel Baker 3ffefccdf2 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.

git-svn-id: https://develop.svn.wordpress.org/trunk@38982 602fd350-edb4-49c9-b593-d223f7449a82
2016-10-27 16:07:06 +00:00
..
phpunit 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:07:06 +00:00
qunit Customize: Implement customized state persistence with changesets. 2016-10-18 20:04:36 +00:00