WordPress.org

Make WordPress Core

Ticket #35276: 35276.diff

File 35276.diff, 949 bytes (added by adamsilverstein, 5 years ago)

don't be sad sally

  • src/wp-includes/comment.php

     
    19391939
    19401940        $comment_ID = $data['comment_ID'];
    19411941        $comment_post_ID = $data['comment_post_ID'];
    1942         $keys = array( 'comment_post_ID', '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' );
     1942        $keys = array( 'comment_post_ID', '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', 'comment_agent', 'comment_author_IP' );
    19431943        $data = wp_array_slice_assoc( $data, $keys );
    19441944        $rval = $wpdb->update( $wpdb->comments, $data, compact( 'comment_ID' ) );
    19451945