WordPress/wp-includes/rest-api
Peter Wilson c41990398c 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.
Fixes #52787.

Built from https://develop.svn.wordpress.org/trunk@50567


git-svn-id: http://core.svn.wordpress.org/trunk@50180 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-03-23 23:36:04 +00:00
..
endpoints Docs: Add missing @since tags for item_link and item_link_description post type and taxonomy labels. 2021-03-13 10:25:06 +00:00
fields REST API: Prevent database error when deleting meta data. 2021-03-23 23:36:04 +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