WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Akismet] Auto-delete spam submitted on posts more than a month old.

[Plugin: Akismet] Auto-delete spam submitted on posts more than a month old.

  • I use pages instead of posts and wanted the auto-delete to function on my website. I changed the line in akismet.php that reads:

    if ( $post->post_type == 'post' && $diff > 30 && get_option( 'akismet_discard_month' ) == 'true' && empty($comment['user_ID']) ) {

    To:

    if ( $diff > 30 && get_option( 'akismet_discard_month' ) == 'true' && empty($comment['user_ID']) ) {

    So far it seems to work. I was wondering why the test for post_type was there and if there is any possible harm in removing this test?

    http://wordpress.org/extend/plugins/akismet/

Viewing 1 replies (of 1 total)
  • Just a follow up – this change did not stop the build up of spam on old pages. Something more is needed.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Akismet] Auto-delete spam submitted on posts more than a month old.’ is closed to new replies.