From 0d45c0ce1270c02f3c4c2d405a969a0b1e00f294 Mon Sep 17 00:00:00 2001 From: Rolly Bueno Date: Sat, 9 Aug 2025 16:57:28 +0800 Subject: [PATCH] Docs: Align get_post_field() @return with actual behavior (int|string|int[]) --- src/wp-includes/post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php index ce9946bcdd63f..c30abdc37970e 100644 --- a/src/wp-includes/post.php +++ b/src/wp-includes/post.php @@ -1180,7 +1180,7 @@ function get_post_ancestors( $post ) { * @param int|WP_Post $post Optional. Post ID or post object. Defaults to global $post. * @param string $context Optional. How to filter the field. Accepts 'raw', 'edit', 'db', * or 'display'. Default 'display'. - * @return string The value of the post field on success, empty string on failure. + * @return int|string|int[] The value of the post field on success, empty string on failure. */ function get_post_field( $field, $post = null, $context = 'display' ) { $post = get_post( $post );