Docs: Correct return type for get_post_custom().

Props chouby, audrasjb.
Fixes #55249.
See #54729.


git-svn-id: https://develop.svn.wordpress.org/trunk@52795 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jb Audras 2022-02-24 21:24:41 +00:00
parent 33f3f1bbfd
commit 16cd22183d

View File

@ -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 );