diff --git a/close-old-comments.php b/close-old-comments.php index 272a8e90ac8777328ae09d0ebf64edbd5e6e2ff1..6f2ff23b6b45a24b8dc191568e506c101bfe5e9c 100644 --- a/close-old-comments.php +++ b/close-old-comments.php @@ -20,12 +20,10 @@ function override_close_comments_days_old($value, $option){ $days_old = (int) $value; if ( ! $days_old ) { - $default_options = get_site_option('cets_blog_defaults_options'); - $days_old = $default_options['close_comments_days_old']; - update_option('close_comments_days_old', $days_old); + $days_old = 15; } - return $days_old; + return $days_old; } add_filter( 'option_close_comments_days_old', override_close_comments_days_old, 10, 2);