From aa0f906c84f946606a89d56a107684dec46dfdb2 Mon Sep 17 00:00:00 2001 From: nacin Date: Tue, 7 Sep 2010 14:36:35 +0000 Subject: [PATCH] Pass some context to the pre_comment_approved hook. props coffee2code, fixes #14802. git-svn-id: http://svn.automattic.com/wordpress/trunk@15592 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/comment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/comment.php b/wp-includes/comment.php index efe6bbec5e..99864ff46a 100644 --- a/wp-includes/comment.php +++ b/wp-includes/comment.php @@ -588,7 +588,7 @@ function wp_allow_comment($commentdata) { $approved = 'spam'; } - $approved = apply_filters('pre_comment_approved', $approved); + $approved = apply_filters( 'pre_comment_approved', $approved, $commentdata ); return $approved; }