Help with Auto-Close Comments plugin
-
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)
");
- The topic ‘Help with Auto-Close Comments plugin’ is closed to new replies.