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
This commit is contained in:
nacin 2010-09-07 14:36:35 +00:00
parent 806f2d56a1
commit aa0f906c84
1 changed files with 1 additions and 1 deletions

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