Ticket #9588: 9588.8.diff
File 9588.8.diff, 591 bytes (added by , 16 years ago) |
---|
-
wp-content/plugins/akismet/akismet.php
263 263 264 264 $post = get_post( $comment['comment_post_ID'] ); 265 265 $last_updated = strtotime( $post->post_modified_gmt ); 266 $diff = time() - $last_updated;266 $diff = strtotime(gmdate("Y-m-d H:i:s")) - $last_updated; 267 267 $diff = $diff / 86400; 268 268 269 269 if ( $post->post_type == 'post' && $diff > 30 && get_option( 'akismet_discard_month' ) == 'true' )