Opened 11 years ago
Closed 11 years ago
#25789 closed enhancement (fixed)
Remove redundant cleanup of PHPMailer addresses in wp_mail
Reported by: | bananastalktome | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 3.8 | Priority: | normal |
Severity: | trivial | Version: | |
Component: | Keywords: | has-patch commit | |
Focuses: | Cc: |
Description
In the wp_mail()
function, ClearAllRecipients()
, ClearAddresses()
, ClearBCCs()
, and ClearCCs()
are all called as part of the process of emptying out values set on the $phpmailer
object.
Using ClearAllRecipients()
should make the other three methods unnecessary, since it already removes all of the recipients (and it doesn't need to loop over anything internally to do so).
This patch removes $phpmailer->ClearAddresses()
, $phpmailer->ClearBCCs()
, and $phpmailer->ClearCCs()
.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Looks good to me.