Changeset 39641
- Timestamp:
- 12/27/2016 05:41:59 PM (8 years ago)
- Location:
- branches/4.7
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.7
-
branches/4.7/src/wp-includes/comment.php
r39491 r39641 2187 2187 $comment_ID = $data['comment_ID']; 2188 2188 $comment_post_ID = $data['comment_post_ID']; 2189 $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' );2190 $data = wp_array_slice_assoc( $data, $keys );2191 2189 2192 2190 /** … … 2202 2200 */ 2203 2201 $data = apply_filters( 'wp_update_comment_data', $data, $comment, $commentarr ); 2202 2203 $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' ); 2204 $data = wp_array_slice_assoc( $data, $keys ); 2204 2205 2205 2206 $rval = $wpdb->update( $wpdb->comments, $data, compact( 'comment_ID' ) );
Note: See TracChangeset
for help on using the changeset viewer.