Make WordPress Core

Ticket #50720: 50720-3.patch

File 50720-3.patch, 636 bytes (added by ayeshrajans, 5 years ago)

https://travis-ci.com/github/Ayesh/wordpress-develop/builds/176764424

  • src/wp-includes/pluggable.php

    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() 
    216216                        require_once ABSPATH . WPINC . '/PHPMailer/SMTP.php';
    217217                        require_once ABSPATH . WPINC . '/PHPMailer/Exception.php';
    218218                        $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';
    219225                }
    220226
    221227                // Headers.