wordpress-develop/src/wp-includes/rest-api
Timothy Jacobs ddf897db05 REST API: Fix updating "multiple" meta keys with non-string values.
Previously, the REST API would end up deleting each row of metadata and recreating it unnecessarily. This was caused by a type mismatch where the metadata API would always return a string value, and the REST API operated on a typed value.

The REST API now applies the same sanitization and type casting for "multiple" meta keys and "single" meta keys.

Fixes #49339.
Props renathoc.


git-svn-id: https://develop.svn.wordpress.org/trunk@47943 602fd350-edb4-49c9-b593-d223f7449a82
2020-06-10 02:20:18 +00:00
..
endpoints Coding Standards: PHP short ternary operator syntax is not allowed. 2020-06-08 21:25:46 +00:00
fields REST API: Fix updating "multiple" meta keys with non-string values. 2020-06-10 02:20:18 +00:00
search Docs: Add missing @see tag to WP_REST_Post_Search_Handler DocBlock. 2019-05-14 14:58:09 +00:00
class-wp-rest-request.php REST API: Handle parameter types consistently within set_param(). 2020-04-09 19:28:58 +00:00
class-wp-rest-response.php Docs: Improve inline comments per the documentation standards. 2020-01-29 00:43:23 +00:00
class-wp-rest-server.php General: Remove or add inline comments to $HTTP_RAW_POST_DATA occurrences. 2020-06-08 19:53:19 +00:00