From 54835433c5d70e9c98bf5d901447b964322b0424 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 16 Sep 2015 22:29:15 +0000 Subject: [PATCH] Docs: Expand the `$comment_approved` argument description for `'comment_post'` action. Props cfinke. Fixes #33903. git-svn-id: https://develop.svn.wordpress.org/trunk@34253 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/comment-functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/comment-functions.php b/src/wp-includes/comment-functions.php index 155e7b4da0..08ddfd2853 100644 --- a/src/wp-includes/comment-functions.php +++ b/src/wp-includes/comment-functions.php @@ -1633,8 +1633,8 @@ function wp_new_comment( $commentdata ) { * * @since 1.2.0 * - * @param int $comment_ID The comment ID. - * @param int $comment_approved 1 (true) if the comment is approved, 0 (false) if not. + * @param int $comment_ID The comment ID. + * @param int|string $comment_approved 1 if the comment is approved, 0 if not, 'spam' if spam. */ do_action( 'comment_post', $comment_ID, $commentdata['comment_approved'] );