From 43baab8105c37146f7e3bc59cbe6d870eed71a89 Mon Sep 17 00:00:00 2001 From: lucha <lucha@paranoici.org> Date: Mon, 17 May 2021 22:02:00 +0200 Subject: [PATCH] forgot to return value --- close-old-comments.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/close-old-comments.php b/close-old-comments.php index 1bc0059..1f10952 100644 --- a/close-old-comments.php +++ b/close-old-comments.php @@ -24,6 +24,8 @@ function override_close_comments_days_old($value, $option){ # return $default_options['close_comments_days_old']; # or even set the option once and for all + } else { + return $days_old; } } add_filter( 'option_close_comments_days_old', override_close_comments_days_old, 10, 2); -- GitLab