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
This commit is contained in:
Andrew Nacin 2010-09-07 14:36:35 +00:00
parent 9f77e4b6a0
commit ab35b9ca6d

View File

@ -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;
}