diff --git a/close-old-comments.php b/close-old-comments.php index 6f2ff23b6b45a24b8dc191568e506c101bfe5e9c..d8dde639b0c308b728f7e14d4dbcf1bdabadf160 100644 --- a/close-old-comments.php +++ b/close-old-comments.php @@ -2,7 +2,7 @@ /* * Plugin Name: A/I - Close Old Comments * Description: Forces the closure of comments on blog posts after a certain amount of days - * Version: 0.1.0 + * Version: 0.1.1 * Author: Autistici/Inventati * Author URI: https://autistici.org */ @@ -12,7 +12,7 @@ function override_close_comments_for_old_posts(){ return true; } -add_filter( 'pre_option_close_comments_for_old_posts', override_close_comments_for_old_posts); +add_filter('pre_option_close_comments_for_old_posts', 'override_close_comments_for_old_posts'); # Filter on get_option(' close_comments_days_old') # If close_comments_days_old is not set (or is zero), set it to a default value @@ -25,6 +25,6 @@ function override_close_comments_days_old($value, $option){ return $days_old; } -add_filter( 'option_close_comments_days_old', override_close_comments_days_old, 10, 2); +add_filter('option_close_comments_days_old', 'override_close_comments_days_old', 10, 2); ?>