Ticket #8343: 8343.diff
| File 8343.diff, 442 bytes (added by Denis-de-Bernardy, 4 years ago) |
|---|
-
wp-comments-post.php
17 17 18 18 nocache_headers(); 19 19 20 do_action('pre_comment_post'); 21 20 22 $comment_post_ID = (int) $_POST['comment_post_ID']; 21 23 22 24 $status = $wpdb->get_row( $wpdb->prepare("SELECT post_status, comment_status FROM $wpdb->posts WHERE ID = %d", $comment_post_ID) );