Make WordPress Core


Ignore:
Timestamp:
10/17/2022 11:40:36 AM (21 months ago)
Author:
audrasjb
Message:

Mail: Reset PHPMailer properties between use.

Props xknown, martinkrcho, tykoted.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/pluggable.php

    r54397 r54529  
    354354        $phpmailer->clearCustomHeaders();
    355355        $phpmailer->clearReplyTos();
     356        $phpmailer->Body    = '';
     357        $phpmailer->AltBody = '';
    356358
    357359        // Set "From" name and email.
Note: See TracChangeset for help on using the changeset viewer.