From 075779ebaa97e4c05ef5106f0d24ca1036002884 Mon Sep 17 00:00:00 2001 From: ingeniumed Date: Fri, 5 Jul 2024 14:28:06 +1000 Subject: [PATCH] Revert setting empty webhook url --- modules/notifications/notifications.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/modules/notifications/notifications.php b/modules/notifications/notifications.php index ff6ff295..a8770072 100644 --- a/modules/notifications/notifications.php +++ b/modules/notifications/notifications.php @@ -458,8 +458,6 @@ public function settings_validate( $new_options ) { // White list validation for the 'send_to_slack' option if ( ! isset( $new_options['send_to_webhook'] ) || 'on' != $new_options['send_to_webhook'] ) { $new_options['send_to_webhook'] = 'off'; - // Reset the webhook URL if it's not turned on. - $new_options['webhook_url'] = ''; } // White list validation for the 'slack_webhook_url' option