WordPress.org

Ready to get started?Download WordPress

Forums

Akismet
Auto-delete spam submitted on posts more than a month old. (2 posts)

  1. Bev
    Member
    Posted 1 year ago #

    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/

  2. Bev
    Member
    Posted 1 year ago #

    Just a follow up - this change did not stop the build up of spam on old pages. Something more is needed.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.