Skip to content

Commit

Permalink
Revert setting empty webhook url
Browse files Browse the repository at this point in the history
  • Loading branch information
ingeniumed committed Jul 5, 2024
1 parent 4714376 commit 075779e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions modules/notifications/notifications.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 075779e

Please sign in to comment.