WordPress/wp-includes/rest-api/fields
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
..
class-wp-rest-comment-meta-fields.php Docs: Update @since version to 4.9.8 for meta registration subtype handling. 2018-07-23 17:02:25 +00:00
class-wp-rest-meta-fields.php REST API: Prevent database error when deleting meta data. 2021-03-25 00:04:02 +00:00
class-wp-rest-post-meta-fields.php Docs: Update @since version to 4.9.8 for meta registration subtype handling. 2018-07-23 17:02:25 +00:00
class-wp-rest-term-meta-fields.php Docs: Update @since version to 4.9.8 for meta registration subtype handling. 2018-07-23 17:02:25 +00:00
class-wp-rest-user-meta-fields.php Docs: Update @since version to 4.9.8 for meta registration subtype handling. 2018-07-23 17:02:25 +00:00