Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Logger breaks if no array passed from wp_mail #94
In our workflow we used a different mailer by intercepting the call to wp_mail. Because wp_mail was never passed its arguments, wp-mail-logging throws a Fatal Error.
Steps to replicate: Add a function which intercepts the call to wp_mail and doesn't pass on the arguments. Below is a trivial example to reproduce the problem.
Expected result: Either a PHP Warning, or a note in the logging page saying that wp-mail-logging hasn't received the arguments it was expecting.
The docs say
Catching this exception can be done very easy here