WordPress.org

Make WordPress Core

Changeset 47858


Ignore:
Timestamp:
05/27/2020 09:42:38 AM (16 months ago)
Author:
SergeyBiryukov
Message:

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

Props chrisvanpatten.
Fixes #50259.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/fields/class-wp-rest-meta-fields.php

    r47122 r47858  
    7171     * @param int             $object_id Object ID to fetch meta for.
    7272     * @param WP_REST_Request $request   Full details about the request.
    73      * @return object|WP_Error Object containing the meta values by name, otherwise WP_Error object.
     73     * @return array Array containing the meta values keyed by name.
    7474     */
    7575    public function get_value( $object_id, $request ) {
Note: See TracChangeset for help on using the changeset viewer.