Ticket #30307: comment_update_user_id.diff
File comment_update_user_id.diff, 836 bytes (added by , 10 years ago) |
---|
-
trunk/wp-includes/comment.php
2230 2230 2231 2231 $comment_ID = $data['comment_ID']; 2232 2232 $comment_post_ID = $data['comment_post_ID']; 2233 $keys = array( 'comment_content', 'comment_author', 'comment_author_email', 'comment_approved', 'comment_karma', 'comment_author_url', 'comment_date', 'comment_date_gmt', 'comment_parent' );2233 $keys = array( 'comment_content', 'comment_author', 'comment_author_email', 'comment_approved', 'comment_karma', 'comment_author_url', 'comment_date', 'comment_date_gmt', 'comment_parent', 'user_id' ); 2234 2234 $data = wp_array_slice_assoc( $data, $keys ); 2235 2235 $rval = $wpdb->update( $wpdb->comments, $data, compact( 'comment_ID' ) ); 2236 2236