From 2d0e9b105703985e8687450b4a581bec5db9dafa Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 17 Jul 2020 13:47:23 +0000 Subject: [PATCH] Docs: Correct documentation for the `$meta_key` parameter of `get_metadata_default()`. The parameter is required, not optional. Follow-up to [48502]. See #43941. git-svn-id: https://develop.svn.wordpress.org/trunk@48504 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/meta.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/wp-includes/meta.php b/src/wp-includes/meta.php index 88edf152cd..94cbdeece6 100644 --- a/src/wp-includes/meta.php +++ b/src/wp-includes/meta.php @@ -596,8 +596,7 @@ function get_metadata_raw( $meta_type, $object_id, $meta_key = '', $single = fal * @param string $meta_type Type of object metadata is for. Accepts 'post', 'comment', 'term', 'user', * or any other object type with an associated meta table. * @param int $object_id ID of the object metadata is for. - * @param string $meta_key Metadata key. If not specified, retrieve all metadata for - * the specified object. Default empty. + * @param string $meta_key Metadata key. * @param bool $single Optional. If true, return only the first value of the specified meta_key. * This parameter has no effect if meta_key is not specified. Default false. * @return mixed Single metadata value, or array of values.