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
This commit is contained in:
Sergey Biryukov 2015-09-16 22:29:15 +00:00
parent 03ec7cc107
commit 54835433c5
1 changed files with 2 additions and 2 deletions

View File

@ -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'] );