From ab8417702e4e62f7f00d2b72f00e696075a7af96 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Thu, 20 Aug 2015 19:35:43 +0000 Subject: [PATCH] Docs: Correct the phpDoc type to a boolean for the `$single` parameter in the `get_{$meta_type}_metadata` hook docs. Props dlh. Fixes #33451. git-svn-id: https://develop.svn.wordpress.org/trunk@33665 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/meta.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/meta.php b/src/wp-includes/meta.php index a0700b07b4..1a648461b1 100644 --- a/src/wp-includes/meta.php +++ b/src/wp-includes/meta.php @@ -475,12 +475,11 @@ function get_metadata($meta_type, $object_id, $meta_key = '', $single = false) { * * @since 3.1.0 * - * @param null|array|string $value The value get_metadata() should - * return - a single metadata value, + * @param null|array|string $value The value get_metadata() should return - a single metadata value, * or an array of values. * @param int $object_id Object ID. * @param string $meta_key Meta key. - * @param string|array $single Meta value, or an array of values. + * @param bool $single Whether to return only the first value of the specified $meta_key. */ $check = apply_filters( "get_{$meta_type}_metadata", null, $object_id, $meta_key, $single ); if ( null !== $check ) {