Ticket #39702: 39702.diff
File 39702.diff, 1.0 KB (added by , 8 years ago) |
---|
-
src/wp-includes/pluggable.php
450 450 // Set custom headers 451 451 if ( !empty( $headers ) ) { 452 452 foreach ( (array) $headers as $name => $content ) { 453 $phpmailer-> AddCustomHeader( sprintf( '%1$s: %2$s', $name, $content ) );453 $phpmailer->addCustomHeader( sprintf( '%1$s: %2$s', $name, $content ) ); 454 454 } 455 455 456 456 if ( false !== stripos( $content_type, 'multipart' ) && ! empty($boundary) ) 457 $phpmailer-> AddCustomHeader( sprintf( "Content-Type: %s;\n\t boundary=\"%s\"", $content_type, $boundary ) );457 $phpmailer->addCustomHeader( sprintf( "Content-Type: %s;\n\t boundary=\"%s\"", $content_type, $boundary ) ); 458 458 } 459 459 460 460 if ( !empty( $attachments ) ) { 461 461 foreach ( $attachments as $attachment ) { 462 462 try { 463 $phpmailer-> AddAttachment($attachment);463 $phpmailer->addAttachment($attachment); 464 464 } catch ( phpmailerException $e ) { 465 465 continue; 466 466 }