From 0bb4a1bdd0edfa29b77dac1624ed0ede280f55f9 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Sat, 17 Oct 2015 14:23:05 +0000 Subject: [PATCH] Docs: Improve the hook doc for the `get_post_status` filter, introduced in [35233]. Also adds a missing parameter description for `$post`. See #23458. See #32246. git-svn-id: https://develop.svn.wordpress.org/trunk@35240 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/post-functions.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/post-functions.php b/src/wp-includes/post-functions.php index d1cdc6927e..d514cea48f 100644 --- a/src/wp-includes/post-functions.php +++ b/src/wp-includes/post-functions.php @@ -574,11 +574,12 @@ function get_post_status( $ID = '' ) { } /** - * Filters the post status. + * Filter the post status. * * @since 4.4.0 * - * @param string $post->post_status The status of the post. + * @param string $post_status The post status. + * @param WP_Post $post The post object. */ return apply_filters( 'get_post_status', $post->post_status, $post ); }