From ab35b9ca6da0bc5a31f46e0952dda5922473e6b9 Mon Sep 17 00:00:00 2001 From: Andrew 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: https://develop.svn.wordpress.org/trunk@15592 602fd350-edb4-49c9-b593-d223f7449a82 --- 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; }