Email suppression stays active when no Apprise endpoint is configured #9
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
eric/apprise-wordpress-notifications#9
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Found during security audit run 3 (2026-10-16). This is a functional bug, not a security issue.
Problem
The email suppressor is registered whenever the plugin is globally
enabled(apprise-notifications.php:185-191). It doesn't check that an Apprise endpoint is configured. Ifapi_urlis empty, or set to a URL the client rejects, then:allmode drops every site email, including password resets;matchingmode drops comment-moderation, new-user and auto-update emails;and the Apprise notification that was supposed to replace them never goes out either. The admin gets nothing.
Fix
$client->is_configured()is also true.warningwhen suppression is configured but skipped.enabledwith an emptyapi_urlmeans nopre_wp_mailornotify_*filters are added.A send that fails at runtime (endpoint down) can't be detected before
wp_mailruns, so this fix covers the "not configured" case only.