Make WordPress Core

Ticket #50259: 50259.diff

File 50259.diff, 775 bytes (added by chrisvanpatten, 6 years ago)
  • src/wp-includes/rest-api/fields/class-wp-rest-meta-fields.php

    diff --git src/wp-includes/rest-api/fields/class-wp-rest-meta-fields.php src/wp-includes/rest-api/fields/class-wp-rest-meta-fields.php
    index a897d13c1b..1de13aac19 100644
    abstract class WP_REST_Meta_Fields { 
    7070         *
    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 ) {
    7676                $fields   = $this->get_registered_fields();