mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-15 07:05:37 +01:00
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:
parent
806f2d56a1
commit
aa0f906c84
@ -588,7 +588,7 @@ function wp_allow_comment($commentdata) {
|
|||||||
$approved = 'spam';
|
$approved = 'spam';
|
||||||
}
|
}
|
||||||
|
|
||||||
$approved = apply_filters('pre_comment_approved', $approved);
|
$approved = apply_filters( 'pre_comment_approved', $approved, $commentdata );
|
||||||
return $approved;
|
return $approved;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user