From 51faedbc32c6e751003328cdd5a871b3a428f311 Mon Sep 17 00:00:00 2001 From: ai-bot Date: Wed, 14 Oct 2026 09:05:45 +0000 Subject: [PATCH] Tidy functions.php: guards, escaping, English comments --- functions.php | 55 ++++++++++++++++++++++----------------------------- 1 file changed, 24 insertions(+), 31 deletions(-) diff --git a/functions.php b/functions.php index 44c6a7b..bba95bb 100644 --- a/functions.php +++ b/functions.php @@ -1,54 +1,47 @@ Logg ut'; + echo 'Logg ut'; } } -// Change default WordPress email address -add_filter('wp_mail_from', 'new_mail_from'); -add_filter('wp_mail_from_name', 'new_mail_from_name'); -function new_mail_from($old) { return 'info@taubaneforeningen.no'; } +// Override the default WordPress sender address. +function new_mail_from($old) { + return "info@taubaneforeningen.no"; +} +add_filter("wp_mail_from", "new_mail_from"); -function new_mail_from_name($old) { return 'Norske Tau- og Kabelbaners Forening'; } -//end: Change default WordPress email address -?> \ No newline at end of file +function new_mail_from_name($old) { + return "Norske Tau- og Kabelbaners Forening"; +} +add_filter("wp_mail_from_name", "new_mail_from_name");