• Hello. I am using the Auto-Close Comments plugin to automatically close comments in posts after 7 days. I edited the plugin to change it to 4 days, and ever since I did that, it has been been acting very strangely!! It seems to close each post now that is older than 1 day old.

    I have tried activating and deactivating, deleting and re-uploading the file, using the previous file, etc, and it just keeps acting stranger.

    Here is what I think is the relevant code. Can anyone explain what might be going on? Thanks!

    // Set $age to the age at which a post should become stale
    $age = '7 DAY';

    $date = $wpdb->get_var("
    SELECT DATE_ADD(DATE_SUB(CURDATE(), INTERVAL $age), INTERVAL 1 DAY)
    ");

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator James Huff

    (@macmanx)

    Did you get the plugin from the WP Wiki or the Codex? The version on the Codex is the latest version and the only version compatible with WP v1.5.

    Thread Starter solipsist

    (@solipsist)

    I believe I got it some time ago from the Codex. I’ve been using it without any problems [until tonight] for a few months. I’ll do a fresh install from the Codex version though, and see how that goes…

    Thread Starter solipsist

    (@solipsist)

    Thanks for the info, but that didn’t work. All my posts older than 1 day are still closed. I’m confused!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Help with Auto-Close Comments plugin’ is closed to new replies.