PluginProbe
SendWP / 1.0.1
SendWP v1.0.1
trunk 0.0.1 0.0.2 0.0.3 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.1 1.2.10 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3 1.3.1 1.4.4 1.4.5 1.4.6 1.4.8
← All changes | includes/class.mailer.php +2 -7 1.31.0.1 View file →
@@ -77,15 +77,10 @@
77 77 } else {
78 78 $args[ 'body' ][ 'altbody' ] = $this->Body;
79 79 }
80 80
81 - if($reply_to = $this->getReplyToAddresses()){
82 - /**
83 - * $reply_to is an array of arrays.
84 - * [ [ $address, $name ], [...] ]
85 - * To get a string value for the address, we need to reset it twice.
86 - */
87 - $reply_to = reset($reply_to);
81 + if($this->getReplyToAddresses()){
82 + $reply_to = reset($this->getReplyToAddresses());
88 83 $args['body']['reply_to'] = reset($reply_to);
89 84 }
90 85
91 86 if( ! empty( $cc_emails ) ) {