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:
parent
9f77e4b6a0
commit
ab35b9ca6d
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user