From 45d8f6b9d090faddda0c56d70a22b3fb4f76c2a3 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 27 May 2020 09:42:38 +0000 Subject: [PATCH] Docs: Correct `@return` value for `WP_REST_Meta_Fields::get_value()`. Props chrisvanpatten. Fixes #50259. git-svn-id: https://develop.svn.wordpress.org/trunk@47858 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/rest-api/fields/class-wp-rest-meta-fields.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 a897d13c1b..1de13aac19 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 @@ -70,7 +70,7 @@ abstract class WP_REST_Meta_Fields { * * @param int $object_id Object ID to fetch meta for. * @param WP_REST_Request $request Full details about the request. - * @return object|WP_Error Object containing the meta values by name, otherwise WP_Error object. + * @return array Array containing the meta values keyed by name. */ public function get_value( $object_id, $request ) { $fields = $this->get_registered_fields();