mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-11 02:49:04 +01:00
Filter comments when updating. Props mdawaffe.
git-svn-id: http://svn.automattic.com/wordpress/trunk@3662 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6ee476b1ec
commit
31cb659651
@ -185,6 +185,8 @@ function wp_update_comment($commentarr) {
|
|||||||
// Merge old and new fields with new fields overwriting old ones.
|
// Merge old and new fields with new fields overwriting old ones.
|
||||||
$commentarr = array_merge($comment, $commentarr);
|
$commentarr = array_merge($comment, $commentarr);
|
||||||
|
|
||||||
|
$commentarr = wp_filter_comment( $commentarr );
|
||||||
|
|
||||||
// Now extract the merged array.
|
// Now extract the merged array.
|
||||||
extract($commentarr);
|
extract($commentarr);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user