Make WordPress Core


Ignore:
Timestamp:
08/20/2015 07:35:43 PM (11 years ago)
Author:
DrewAPicture
Message:

Docs: Correct the phpDoc type to a boolean for the $single parameter in the get_{$meta_type}_metadata hook docs.

Props dlh.
Fixes #33451.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/meta.php

    r33231 r33665  
    476476         * @since 3.1.0
    477477         *
    478          * @param null|array|string $value     The value get_metadata() should
    479          *                                     return - a single metadata value,
     478         * @param null|array|string $value     The value get_metadata() should return - a single metadata value,
    480479         *                                     or an array of values.
    481480         * @param int               $object_id Object ID.
    482481         * @param string            $meta_key  Meta key.
    483          * @param string|array      $single    Meta value, or an array of values.
     482         * @param bool              $single    Whether to return only the first value of the specified $meta_key.
    484483         */
    485484        $check = apply_filters( "get_{$meta_type}_metadata", null, $object_id, $meta_key, $single );
Note: See TracChangeset for help on using the changeset viewer.