WordPress.org

Make WordPress Core

Ticket #14888: 14888.patch

File 14888.patch, 586 bytes (added by SergeyBiryukov, 6 years ago)
  • wp-includes/class-phpmailer.php

     
    11411141
    11421142    $result .= $this->HeaderLine('Date', self::RFCDate());
    11431143    if($this->Sender == '') {
    1144       $result .= $this->HeaderLine('Return-Path', trim($this->From));
    1145     } else {
    1146       $result .= $this->HeaderLine('Return-Path', trim($this->Sender));
     1144      $this->Sender = trim($this->From);
    11471145    }
    11481146
    11491147    // To be created automatically by mail()