WordPress/wp-includes/rest-api
Peter Wilson a37595b941 REST API: Prevent database error when deleting meta data.
Add a check to `WP_REST_Meta_Fields::delete_meta_value()` ensuring meta data is set before attempting to delete it from the database. If the data does not exist, the delete is considered successful as the data matches the desired state.

Props BrechtVds, goaroundagain, TimothyBlynJacobs.
Merges [50567] to the 5.7 branch.
Fixes #52787.

Built from https://develop.svn.wordpress.org/branches/5.7@50573


git-svn-id: http://core.svn.wordpress.org/branches/5.7@50186 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-25 00:04:02 +00:00
..
endpoints REST API: Allow for the posts endpoint include/exclude terms query to include_children. 2021-02-02 19:25:05 +00:00
fields REST API: Prevent database error when deleting meta data. 2021-03-25 00:04:02 +00:00
search REST API: Corrections and improvements to docblocks for REST API filters. 2021-01-10 22:23:09 +00:00
class-wp-rest-request.php REST API: Return detailed error information from request validation. 2021-02-02 17:28:02 +00:00
class-wp-rest-response.php Docs: Corrections and improvements to inline docs relating to the REST API. 2020-11-16 11:04:12 +00:00
class-wp-rest-server.php REST API: Return detailed error information from request validation. 2021-02-02 17:28:02 +00:00