Skip to content

Commit bcb518d

Browse files
committed
Use public method to get custom headers
1 parent daed968 commit bcb518d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mailer.http.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ protected function get_request_headers($hide_api_key = false)
278278
protected function parse_reply_to_from_custom_header()
279279
{
280280
$replyTos = array();
281-
foreach ($this->CustomHeader as $header) { // wp_mail sets Reply-To as custom header (does not use phpmailer->addReplyTo)
281+
foreach ($this->getCustomHeaders() as $header) { // wp_mail sets Reply-To as custom header (does not use phpmailer->addReplyTo)
282282
list($name, $value) = $header;
283283
if ($name === 'Reply-To' && !empty($value)) {
284284
$replyTos[] = trim($value);

0 commit comments

Comments
 (0)