Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Contact Form: Send all emails through wrapper to ensure consistency
Previously the two `wp_mail()` calls in `Grunion_Contact_Form::process_submission()` had extra filters around them in order to support HTML messages. The `wp_mail()` call in `grunion_ajax_spam()` was missing those filters, though. That resulted in ham messages being sent with a `plain-text` content type, but with HTML markup in the body. Sending all `wp_mail()` calls fixes that particular issue, and also makes it much less likely that a similar bug will happen in the future, because it is DRY. Fixes #7179
- Loading branch information
Showing
2 changed files
with
26 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters