WordPress.org

Make WordPress Core

Ticket #9934: 9934.diff

File 9934.diff, 655 bytes (added by ryan, 5 years ago)
  • wp-includes/comment.php

     
    988988        $commentdata['comment_date']     = current_time('mysql'); 
    989989        $commentdata['comment_date_gmt'] = current_time('mysql', 1); 
    990990 
     991        $commentdata['comment_approved'] = wp_allow_comment($commentdata); 
     992 
    991993        $commentdata = wp_filter_comment($commentdata); 
    992994 
    993         $commentdata['comment_approved'] = wp_allow_comment($commentdata); 
    994  
    995995        $comment_ID = wp_insert_comment($commentdata); 
    996996 
    997997        do_action('comment_post', $comment_ID, $commentdata['comment_approved']);