Make WordPress Core

Ticket #36564: 36564.diff

File 36564.diff, 662 bytes (added by dshanske, 8 years ago)
  • src/wp-includes/comment.php

    diff --git src/wp-includes/comment.php src/wp-includes/comment.php
    index d00eb77..cef4884 100644
    function wp_update_comment($commentarr) { 
    20232023        $data = wp_array_slice_assoc( $data, $keys );
    20242024        $rval = $wpdb->update( $wpdb->comments, $data, compact( 'comment_ID' ) );
    20252025
     2026        // Add Last Modified Data to Comment Meta
     2027        update_comment_meta( $comment_id, 'comment_modified', current_time( 'mysql' ) );
     2028        update_comment_meta( $comment_id, 'comment_modified_gmt', current_time( 'mysql', 1 ) );
     2029
    20262030        clean_comment_cache( $comment_ID );
    20272031        wp_update_comment_count( $comment_post_ID );
    20282032        /**