From bce985a5d7c6b5e70c8770dcca114eed685395aa Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 1 Nov 2015 14:05:42 +0000 Subject: [PATCH] Docs: Correct `$post` parameter description for `display_post_states` filter. Props grapplerulrich. Fixes #34541. git-svn-id: https://develop.svn.wordpress.org/trunk@35484 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/template-functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/includes/template-functions.php b/src/wp-admin/includes/template-functions.php index 519ab9bbbc..ecfd48901c 100644 --- a/src/wp-admin/includes/template-functions.php +++ b/src/wp-admin/includes/template-functions.php @@ -1686,8 +1686,8 @@ function _post_states($post) { * * @since 2.8.0 * - * @param array $post_states An array of post display states. - * @param int $post The post ID. + * @param array $post_states An array of post display states. + * @param WP_Post $post The current post object. */ $post_states = apply_filters( 'display_post_states', $post_states, $post );