Add preprocess_comment filter to enable filtering all comment data in one go. Patch from MooKitty.
git-svn-id: https://develop.svn.wordpress.org/trunk@2048 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
afe99eac27
commit
785835599e
@ -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;
|
||||
@ -486,4 +487,4 @@ function add_ping($post_id, $uri) { // Add a URI to those already pung
|
||||
return $wpdb->query("UPDATE $wpdb->posts SET pinged = '$new' WHERE ID = $post_id");
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user