diff --git a/src/wp-includes/pluggable.php b/src/wp-includes/pluggable.php
index 2ebfb405c4..2c9f44cb69 100644
|
a
|
b
|
function wp_mail( $to, $subject, $message, $headers = '', $attachments = array() |
| 216 | 216 | require_once ABSPATH . WPINC . '/PHPMailer/SMTP.php'; |
| 217 | 217 | require_once ABSPATH . WPINC . '/PHPMailer/Exception.php'; |
| 218 | 218 | $phpmailer = new PHPMailer\PHPMailer\PHPMailer( true ); |
| | 219 | |
| | 220 | /** |
| | 221 | * Set email validation to use WordPress's built-in is_email(). |
| | 222 | * @ticket 50720 |
| | 223 | */ |
| | 224 | $phpmailer::$validator = 'is_email'; |
| 219 | 225 | } |
| 220 | 226 | |
| 221 | 227 | // Headers. |