Skip to content

Commit 7a680be

Browse files
Docs: Correct @return type for get_post_field().
Follow-up to [6379], [21559], [24490]. Props marian1, rollybueno. Fixes #63802. git-svn-id: https://develop.svn.wordpress.org/trunk@60621 602fd350-edb4-49c9-b593-d223f7449a82
1 parent e4bf7dc commit 7a680be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/post.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1180,7 +1180,7 @@ function get_post_ancestors( $post ) {
11801180
* @param int|WP_Post $post Optional. Post ID or post object. Defaults to global $post.
11811181
* @param string $context Optional. How to filter the field. Accepts 'raw', 'edit', 'db',
11821182
* or 'display'. Default 'display'.
1183-
* @return string The value of the post field on success, empty string on failure.
1183+
* @return int|string|int[] The value of the post field on success, empty string on failure.
11841184
*/
11851185
function get_post_field( $field, $post = null, $context = 'display' ) {
11861186
$post = get_post( $post );

0 commit comments

Comments
 (0)