Make WordPress Core


Ignore:
Timestamp:
01/13/2015 06:47:33 AM (10 years ago)
Author:
SergeyBiryukov
Message:

Add 'user_id' to the list of fields wp_update_comment() can update.

props jphase.
fixes #30307.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/comment.php

    r31171 r31172  
    22402240    $comment_ID = $data['comment_ID'];
    22412241    $comment_post_ID = $data['comment_post_ID'];
    2242     $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' );
     2242    $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' );
    22432243    $data = wp_array_slice_assoc( $data, $keys );
    22442244    $rval = $wpdb->update( $wpdb->comments, $data, compact( 'comment_ID' ) );
Note: See TracChangeset for help on using the changeset viewer.