From bc231804a305f3bbc57628095c46c2c67a206326 Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Thu, 5 Jan 2017 08:09:06 +0000 Subject: [PATCH] Mail: In PHPMailer 5.2.7 the case of the `Send()` method changed to `send()`, update our call for consistency with the library. Props michalzuber. Fixes #39469. git-svn-id: https://develop.svn.wordpress.org/trunk@39691 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/pluggable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/pluggable.php b/src/wp-includes/pluggable.php index aa9b1adf47..3e6fbe14d6 100644 --- a/src/wp-includes/pluggable.php +++ b/src/wp-includes/pluggable.php @@ -478,7 +478,7 @@ function wp_mail( $to, $subject, $message, $headers = '', $attachments = array() // Send! try { - return $phpmailer->Send(); + return $phpmailer->send(); } catch ( phpmailerException $e ) { $mail_error_data = compact( 'to', 'subject', 'message', 'headers', 'attachments' );