From 96d3c4c5e5067bfe06636aa9741860667ccf86e2 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 13 Jul 2021 18:33:10 +0000 Subject: [PATCH] Docs: Correct documentation for `wp_get_post_parent_id()`. The `$post` parameter is required and does not have a default value. Follow-up to [42397]. Props denisco. See #53399. git-svn-id: https://develop.svn.wordpress.org/trunk@51425 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 47b86ff855..66b53de8cd 100644 --- a/src/wp-includes/post.php +++ b/src/wp-includes/post.php @@ -7437,7 +7437,7 @@ function _publish_post_hook( $post_id ) { * * @since 3.1.0 * - * @param int|WP_Post $post Post ID or post object. Defaults to global $post. + * @param int|WP_Post $post Post ID or post object. * @return int|false Post parent ID (which can be 0 if there is no parent), * or false if the post does not exist. */