WordPress/wp-includes/rest-api/fields
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
..
class-wp-rest-comment-meta-fields.php
class-wp-rest-meta-fields.php REST API: Prevent database error when deleting meta data. 2021-03-23 23:36:04 +00:00
class-wp-rest-post-meta-fields.php
class-wp-rest-term-meta-fields.php
class-wp-rest-user-meta-fields.php