From 631f08096bea41722a67e6b2e70d50ae0e2d3508 Mon Sep 17 00:00:00 2001 From: audrasjb Date: Thu, 24 Feb 2022 21:26:02 +0000 Subject: [PATCH] Docs: Correct return type for `get_post_custom()`. Props chouby, audrasjb. Fixes #55249. See #54729. Built from https://develop.svn.wordpress.org/trunk@52795 git-svn-id: http://core.svn.wordpress.org/trunk@52384 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post.php | 4 +++- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index 7ceff7b693..10dddf859b 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -2591,7 +2591,9 @@ function unregister_post_meta( $post_type, $meta_key ) { * @since 1.2.0 * * @param int $post_id Optional. Post ID. Default is the ID of the global `$post`. - * @return array Post meta for the given post. + * @return mixed An array of values. + * False for an invalid `$post_id` (non-numeric, zero, or negative value). + * An empty string if a valid but non-existing post ID is passed. */ function get_post_custom( $post_id = 0 ) { $post_id = absint( $post_id ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 00cd005511..8beec4dd60 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.0-alpha-52794'; +$wp_version = '6.0-alpha-52795'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.