From 571b061adc9e0eab1ee4866c2402c9f2cc5e75f6 Mon Sep 17 00:00:00 2001 From: azett Date: Sat, 17 Dec 2022 20:47:24 +0100 Subject: [PATCH] PHP functions used as modifier must be registered as modifier explicitly as of Smarty 4.3 - fixed. --- contact.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contact.php b/contact.php index 544addf..75f0752 100755 --- a/contact.php +++ b/contact.php @@ -119,6 +119,10 @@ function contact_form() { function contact_main() { global $smarty; + // Initialize modifier functions + $smarty->registerPlugin('modifier', 'stripslashes', 'stripslashes'); + $smarty->registerPlugin('modifier', 'wp_specialchars', 'wp_specialchars'); + $lang = lang_load('contact'); $smarty->assign('subject', $lang ['contact'] ['head']);