WordPress.org

Make WordPress Core

Ticket #8343: 8343.diff

File 8343.diff, 442 bytes (added by Denis-de-Bernardy, 9 years ago)
  • wp-comments-post.php

     
    1717
    1818nocache_headers();
    1919
     20do_action('pre_comment_post');
     21
    2022$comment_post_ID = (int) $_POST['comment_post_ID'];
    2123
    2224$status = $wpdb->get_row( $wpdb->prepare("SELECT post_status, comment_status FROM $wpdb->posts WHERE ID = %d", $comment_post_ID) );