From 47b47c498061c99c3d0a8c0b23ead130b1c8a19a Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 13 Jan 2015 06:42:21 +0000 Subject: [PATCH] Add 'comment_type' to the list of fields wp_update_comment() can update. props desaiuditd. fixes #30627. Built from https://develop.svn.wordpress.org/trunk@31171 git-svn-id: http://core.svn.wordpress.org/trunk@31152 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/comment.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/comment.php b/wp-includes/comment.php index d671597ed5..b30df85eda 100644 --- a/wp-includes/comment.php +++ b/wp-includes/comment.php @@ -2239,7 +2239,7 @@ function wp_update_comment($commentarr) { $comment_ID = $data['comment_ID']; $comment_post_ID = $data['comment_post_ID']; - $keys = array( 'comment_content', 'comment_author', 'comment_author_email', 'comment_approved', 'comment_karma', 'comment_author_url', 'comment_date', 'comment_date_gmt', 'comment_parent' ); + $keys = array( 'comment_content', 'comment_author', 'comment_author_email', 'comment_approved', 'comment_karma', 'comment_author_url', 'comment_date', 'comment_date_gmt', 'comment_type', 'comment_parent' ); $data = wp_array_slice_assoc( $data, $keys ); $rval = $wpdb->update( $wpdb->comments, $data, compact( 'comment_ID' ) ); diff --git a/wp-includes/version.php b/wp-includes/version.php index d10069e173..b8d4e5c6c3 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.2-alpha-31170'; +$wp_version = '4.2-alpha-31171'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.