Docs: Correct @return value for WP_REST_Meta_Fields::get_value().

Props chrisvanpatten.
Fixes #50259.
Built from https://develop.svn.wordpress.org/trunk@47858


git-svn-id: http://core.svn.wordpress.org/trunk@47634 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2020-05-27 09:44:11 +00:00
parent 57fb3c6cf0
commit 95d53b9a66
2 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ abstract class WP_REST_Meta_Fields {
* *
* @param int $object_id Object ID to fetch meta for. * @param int $object_id Object ID to fetch meta for.
* @param WP_REST_Request $request Full details about the request. * @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 ) { public function get_value( $object_id, $request ) {
$fields = $this->get_registered_fields(); $fields = $this->get_registered_fields();

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.5-alpha-47857'; $wp_version = '5.5-alpha-47858';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.