From 6a80d05750e745240506fab596ebbaa60ba7e886 Mon Sep 17 00:00:00 2001 From: Sovit Tamrakar Date: Thu, 21 Dec 2023 13:05:47 +0545 Subject: [PATCH] Update discourse.php Fix PHP Deprecated message (Use of "self" in callables is deprecated) --- lib/discourse.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/discourse.php b/lib/discourse.php index 6f2ea427..28ef9d33 100644 --- a/lib/discourse.php +++ b/lib/discourse.php @@ -222,7 +222,7 @@ public function initialize_plugin() { $saved_values = get_option( 'discourse_configurable_text' ); $default_values = $this->discourse_configurable_text; $merged_values = array_merge( $default_values, $saved_values ); - array_walk( $merged_values, 'self::register_text_translations' ); + array_walk( $merged_values, self::class . '::register_text_translations' ); update_option( $group_name, $merged_values ); } else { add_option( $group_name, $this->$group_name );