WordPress.org

Make WordPress Core

Ticket #25014: 25014-3.6.patch

File 25014-3.6.patch, 557 bytes (added by bpetty, 7 years ago)
  • wp-includes/class-phpmailer.php

    diff --git wp-includes/class-phpmailer.php wp-includes/class-phpmailer.php
    index 38ac376..238474e 100644
    class PHPMailer { 
    923923    $to = implode(', ', $toArr);
    924924
    925925    if (empty($this->Sender)) {
    926       $params = "-oi ";
     926      $params = " ";
    927927    } else {
    928       $params = sprintf("-oi -f%s", $this->Sender);
     928      $params = sprintf("-f%s", $this->Sender);
    929929    }
    930930    if ($this->Sender != '' and !ini_get('safe_mode')) {
    931931      $old_from = ini_get('sendmail_from');