diff --git a/src/wp-includes/rest-api/fields/class-wp-rest-meta-fields.php b/src/wp-includes/rest-api/fields/class-wp-rest-meta-fields.php
index a24a5f649c..e00ceeabbf 100644
|
a
|
b
|
abstract class WP_REST_Meta_Fields { |
| 267 | 267 | if ( ! delete_metadata( $meta_type, $object_id, wp_slash( $meta_key ), wp_slash( $value ) ) ) { |
| 268 | 268 | return new WP_Error( |
| 269 | 269 | 'rest_meta_database_error', |
| 270 | | __( 'Could not update meta value in database.' ), |
| | 270 | sprintf( __( 'Could not update the meta value of "%s" in database.' ), $meta_key ), |
| 271 | 271 | array( |
| 272 | 272 | 'key' => $name, |
| 273 | 273 | 'status' => WP_Http::INTERNAL_SERVER_ERROR, |
| … |
… |
abstract class WP_REST_Meta_Fields { |
| 280 | 280 | if ( ! add_metadata( $meta_type, $object_id, wp_slash( $meta_key ), wp_slash( $value ) ) ) { |
| 281 | 281 | return new WP_Error( |
| 282 | 282 | 'rest_meta_database_error', |
| 283 | | __( 'Could not update meta value in database.' ), |
| | 283 | sprintf( __( 'Could not update the meta value of "%s" in database.' ), $meta_key ), |
| 284 | 284 | array( |
| 285 | 285 | 'key' => $name, |
| 286 | 286 | 'status' => WP_Http::INTERNAL_SERVER_ERROR, |
| … |
… |
abstract class WP_REST_Meta_Fields { |
| 330 | 330 | if ( ! update_metadata( $meta_type, $object_id, wp_slash( $meta_key ), wp_slash( $value ) ) ) { |
| 331 | 331 | return new WP_Error( |
| 332 | 332 | 'rest_meta_database_error', |
| 333 | | __( 'Could not update meta value in database.' ), |
| | 333 | sprintf( __( 'Could not update the meta value of "%s" in database.' ), $meta_key ), |
| 334 | 334 | array( |
| 335 | 335 | 'key' => $name, |
| 336 | 336 | 'status' => WP_Http::INTERNAL_SERVER_ERROR, |