From 77bd68254fdd47da0b08a7a7a048ff6f430f3742 Mon Sep 17 00:00:00 2001
From: lucha <lucha@paranoici.org>
Date: Wed, 19 May 2021 11:07:52 +0200
Subject: [PATCH] quoting function arguments

PHP prefers/requires function names to be quoted when passed as arguments
---
 close-old-comments.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/close-old-comments.php b/close-old-comments.php
index 6f2ff23..d8dde63 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);
 
 ?>
-- 
GitLab