Ticket #16365: 16365.diff
File 16365.diff, 584 bytes (added by , 13 years ago) |
---|
-
comment.php
1336 1336 $comment_ID = wp_insert_comment($commentdata); 1337 1337 1338 1338 do_action('comment_post', $comment_ID, $commentdata['comment_approved']); 1339 $new_status = $commentdata['comment_approved']; 1340 wp_transition_comment_status($new_status, 'new', (object)$commentdata); 1339 1341 1340 1342 if ( 'spam' !== $commentdata['comment_approved'] ) { // If it's spam save it silently for later crunching 1341 1343 if ( '0' == $commentdata['comment_approved'] )