From febb22fa7e1baa857874d5e57e4d6d351a1afb2f Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Wed, 29 Mar 2006 20:41:13 +0000 Subject: [PATCH] Filter comments when updating. Props mdawaffe. git-svn-id: https://develop.svn.wordpress.org/trunk@3662 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/comment-functions.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-includes/comment-functions.php b/wp-includes/comment-functions.php index 2c6546d2af..1385952ded 100644 --- a/wp-includes/comment-functions.php +++ b/wp-includes/comment-functions.php @@ -185,6 +185,8 @@ function wp_update_comment($commentarr) { // Merge old and new fields with new fields overwriting old ones. $commentarr = array_merge($comment, $commentarr); + $commentarr = wp_filter_comment( $commentarr ); + // Now extract the merged array. extract($commentarr);