From 6b0b49c65be63bb144d355d667a45ca90e455b51 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 21 Sep 2012 12:57:26 +0000 Subject: [PATCH] Update comment_parent in wp_update_comment(). Props JustinSainton. fixes #21706 git-svn-id: http://core.svn.wordpress.org/trunk@21938 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/comment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/comment.php b/wp-includes/comment.php index 8fab9f0c4d..e92c04151c 100644 --- a/wp-includes/comment.php +++ b/wp-includes/comment.php @@ -1484,7 +1484,7 @@ function wp_update_comment($commentarr) { else if ( 'approve' == $comment_approved ) $comment_approved = 1; - $data = compact('comment_content', 'comment_author', 'comment_author_email', 'comment_approved', 'comment_karma', 'comment_author_url', 'comment_date', 'comment_date_gmt'); + $data = compact( 'comment_content', 'comment_author', 'comment_author_email', 'comment_approved', 'comment_karma', 'comment_author_url', 'comment_date', 'comment_date_gmt', 'comment_parent' ); $rval = $wpdb->update( $wpdb->comments, $data, compact( 'comment_ID' ) ); clean_comment_cache($comment_ID);