plugin updates

This commit is contained in:
Tony Volpe
2024-03-01 15:36:30 +00:00
parent ac0ffd7543
commit ed1533dc69
223 changed files with 7575 additions and 2953 deletions

View File

@@ -2,6 +2,8 @@
namespace WPMailSMTP;
use PHPMailer\PHPMailer\Exception;
/**
* Class MailCatcher replaces the \PHPMailer\PHPMailer\PHPMailer introduced in WP 5.5 and
* modifies the email sending logic. Thus, we can use other mailers API to do what we need, or stop emails completely.
@@ -47,4 +49,18 @@ class MailCatcherV6 extends \PHPMailer\PHPMailer\PHPMailer implements MailCatche
return static::$LE; // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
}
/**
* Throw PHPMailer exception.
*
* @since 4.0.0
*
* @param string $error Error message.
*
* @throws Exception PHPMailer exception.
*/
protected function throw_exception( $error ) {
throw new Exception( $error );
}
}