Add 'user_id' to the list of fields wp_update_comment() can update.
props jphase. fixes #30307. Built from https://develop.svn.wordpress.org/trunk@31172 git-svn-id: http://core.svn.wordpress.org/trunk@31153 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
47b47c4980
commit
dcaa26c1de
|
@ -2239,7 +2239,7 @@ function wp_update_comment($commentarr) {
|
||||||
|
|
||||||
$comment_ID = $data['comment_ID'];
|
$comment_ID = $data['comment_ID'];
|
||||||
$comment_post_ID = $data['comment_post_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_type', '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', 'user_id' );
|
||||||
$data = wp_array_slice_assoc( $data, $keys );
|
$data = wp_array_slice_assoc( $data, $keys );
|
||||||
$rval = $wpdb->update( $wpdb->comments, $data, compact( 'comment_ID' ) );
|
$rval = $wpdb->update( $wpdb->comments, $data, compact( 'comment_ID' ) );
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.2-alpha-31171';
|
$wp_version = '4.2-alpha-31172';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue