From 444509e24688d5af8f60e5962de81afa99ced072 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 16 Sep 2015 22:30:23 +0000 Subject: [PATCH] Docs: Expand the `$comment_approved` argument description for `'comment_post'` action. Props cfinke. Fixes #33903. Built from https://develop.svn.wordpress.org/trunk@34253 git-svn-id: http://core.svn.wordpress.org/trunk@34217 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/comment-functions.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/comment-functions.php b/wp-includes/comment-functions.php index 155e7b4da0..08ddfd2853 100644 --- a/wp-includes/comment-functions.php +++ b/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'] ); diff --git a/wp-includes/version.php b/wp-includes/version.php index a127fece0a..1e588dd8bd 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-34252'; +$wp_version = '4.4-alpha-34253'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.