mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user