diff options
Diffstat (limited to 'src/wp-includes/rest-api/fields/class-wp-rest-meta-fields.php')
-rw-r--r-- | src/wp-includes/rest-api/fields/class-wp-rest-meta-fields.php | 6 |
1 files changed, 3 insertions, 3 deletions
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 199c54f8f1..81806e1b65 100644 --- 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 @@ -213,7 +213,7 @@ abstract class WP_REST_Meta_Fields { * @param int $object_id Object ID the field belongs to. * @param string $meta_key Key for the field. * @param string $name Name for the field that is exposed in the REST API. - * @return bool|WP_Error True if meta field is deleted, WP_Error otherwise. + * @return true|WP_Error True if meta field is deleted, WP_Error otherwise. */ protected function delete_meta_value( $object_id, $meta_key, $name ) { $meta_type = $this->get_meta_type(); @@ -255,7 +255,7 @@ abstract class WP_REST_Meta_Fields { * @param string $meta_key Key for the custom field. * @param string $name Name for the field that is exposed in the REST API. * @param array $values List of values to update to. - * @return bool|WP_Error True if meta fields are updated, WP_Error otherwise. + * @return true|WP_Error True if meta fields are updated, WP_Error otherwise. */ protected function update_multi_meta_value( $object_id, $meta_key, $name, $values ) { $meta_type = $this->get_meta_type(); @@ -350,7 +350,7 @@ abstract class WP_REST_Meta_Fields { * @param string $meta_key Key for the custom field. * @param string $name Name for the field that is exposed in the REST API. * @param mixed $value Updated value. - * @return bool|WP_Error True if the meta field was updated, WP_Error otherwise. + * @return true|WP_Error True if the meta field was updated, WP_Error otherwise. */ protected function update_meta_value( $object_id, $meta_key, $name, $value ) { $meta_type = $this->get_meta_type(); |