From 12d10da7e6a2dff082681ddd744244b30c395403 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 13 Nov 2013 03:45:11 +0000 Subject: [PATCH] Remove redundant cleanup of PHPMailer addresses in wp_mail(). props bananastalktome. fixes #25789. Built from https://develop.svn.wordpress.org/trunk@26121 git-svn-id: http://core.svn.wordpress.org/trunk@26033 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/pluggable.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php index 0eb167024f..bb18077393 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -306,11 +306,8 @@ function wp_mail( $to, $subject, $message, $headers = '', $attachments = array() } // Empty out the values that may be set - $phpmailer->ClearAddresses(); $phpmailer->ClearAllRecipients(); $phpmailer->ClearAttachments(); - $phpmailer->ClearBCCs(); - $phpmailer->ClearCCs(); $phpmailer->ClearCustomHeaders(); $phpmailer->ClearReplyTos();