mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 16:21:26 +01:00
Add preprocess_comment filter to enable filtering all comment data in one go. Patch from MooKitty.
git-svn-id: http://svn.automattic.com/wordpress/trunk@2048 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8de73e88b2
commit
5af5da1547
@ -389,6 +389,7 @@ function user_can_edit_user($user_id, $other_user) {
|
||||
function wp_new_comment( $commentdata ) {
|
||||
global $wpdb;
|
||||
|
||||
$commentdata = apply_filters('preprocess_comment', $commentdata);
|
||||
extract($commentdata);
|
||||
|
||||
$comment_post_ID = (int) $comment_post_ID;
|
||||
|
Loading…
Reference in New Issue
Block a user