diff options
author | John Blackbourn <johnbillion@git.wordpress.org> | 2021-01-03 22:02:13 +0000 |
---|---|---|
committer | John Blackbourn <johnbillion@git.wordpress.org> | 2021-01-03 22:02:13 +0000 |
commit | 679ccc35e63e62a90c768afcc16f46bd154dfb65 (patch) | |
tree | d1f8aecbddc39afc3fd960d1cae3860093a126cb /src/wp-includes/rest-api/fields/class-wp-rest-meta-fields.php | |
parent | 374b41ed13a5cf26739287a2c3fee15b14d4cfc5 (diff) | |
download | wordpress-679ccc35e63e62a90c768afcc16f46bd154dfb65.tar.gz wordpress-679ccc35e63e62a90c768afcc16f46bd154dfb65.zip |
Docs: Promote many `bool` types to `true` or `false` where only that value is used.
See #51800
git-svn-id: https://develop.svn.wordpress.org/trunk@49927 602fd350-edb4-49c9-b593-d223f7449a82
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(); |