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 phpmailerException;
// Load PHPMailer class, so we can subclass it.
if ( ! class_exists( 'PHPMailer', false ) ) {
require_once ABSPATH . WPINC . '/class-phpmailer.php';
@@ -54,4 +56,18 @@ class MailCatcher extends \PHPMailer implements MailCatcherInterface {
return $this->LE; // phpcs:ignore WordPress.NamingConventions.ValidVariableName.UsedPropertyNotSnakeCase
}
/**
* Throw PHPMailer exception.
*
* @since 4.0.0
*
* @param string $error Error message.
*
* @throws phpmailerException PHPMailer exception.
*/
protected function throw_exception( $error ) {
throw new phpmailerException( $error );
}
}