Make WordPress Core

Ticket #36427: 36427.2.diff

File 36427.2.diff, 705 bytes (added by dshanske, 10 years ago)

Fix Document

  • src/wp-includes/comment.php

    diff --git src/wp-includes/comment.php src/wp-includes/comment.php
    index d00eb77..c3aa78d 100644
    function wp_update_comment($commentarr) {  
    20312031         * The hook also fires immediately before comment status transition hooks are fired.
    20322032         *
    20332033         * @since 1.2.0
     2034         * @since 4.6.0 added the $data argument
    20342035         *
    20352036         * @param int $comment_ID The comment ID.
     2037         * @param array $data Comment Data
    20362038         */
    2037         do_action( 'edit_comment', $comment_ID );
     2039        do_action( 'edit_comment', $comment_ID, $data );
    20382040        $comment = get_comment($comment_ID);
    20392041        wp_transition_comment_status($comment->comment_approved, $old_status, $comment);
    20402042        return $rval;