WordPress.org

Make WordPress Core

Ticket #18064: comment-insert.diff

File comment-insert.diff, 437 bytes (added by joostdevalk, 4 years ago)

Proposal patch

  • wp-includes/comment.php

     
    12441244        $comment = get_comment($id); 
    12451245        do_action('wp_insert_comment', $id, $comment); 
    12461246 
     1247        // Allow hooking for specific comment types. 
     1248        do_action('wp_insert_comment_type_'.$comment->comment_type, $id, $comment); 
     1249 
    12471250        return $id; 
    12481251} 
    12491252