From a7b38bf90a8b4e070ae98faa076e41403c59f951 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Thu, 20 Aug 2015 19:36:25 +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. Built from https://develop.svn.wordpress.org/trunk@33665 git-svn-id: http://core.svn.wordpress.org/trunk@33632 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/meta.php | 5 ++--- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/wp-includes/meta.php b/wp-includes/meta.php index a0700b07b4..1a648461b1 100644 --- a/wp-includes/meta.php +++ b/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 ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index 63a3e83d04..daeca207a8 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-33664'; +$wp_version = '4.4-alpha-33665'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.