@@ -255,12 +255,12 @@ protected function get_request_headers($hide_api_key = false)
255255 }
256256
257257 /**
258- * Returns the list of Reply-To headers
258+ * Returns the list of Reply-To recipients
259259 * For WordPress version below 4.6
260260 * @return array
261261 * TODO Remove this when wordpress does not support version below 4.6
262262 */
263- protected function get_reply_to_below46 ()
263+ protected function parse_reply_to_from_custom_header ()
264264 {
265265 $ replyTos = array ();
266266 foreach ($ this ->CustomHeader as $ header ) { // wp_mail sets Reply-To as custom header (does not use phpmailer->addReplyTo)
@@ -278,7 +278,7 @@ protected function get_reply_to_below46()
278278 * For WordPress 4.6 and above
279279 * @return array Formatted list of reply tos
280280 */
281- protected function get_reply_to_above46 ()
281+ protected function parse_reply_to ()
282282 {
283283 $ replyTos = array ();
284284 foreach ($ this ->ReplyTo as $ reply_to ) {
@@ -294,12 +294,13 @@ protected function get_reply_to_above46()
294294 return implode (', ' , $ replyTos );
295295 }
296296
297- protected function get_reply_to () {
297+ protected function get_reply_to ()
298+ {
298299 $ wp_version = get_bloginfo ('version ' );
299300 if (version_compare ($ wp_version , '4.6 ' ) == -1 ) { // if lower than 4.6
300- return $ this ->get_reply_to_below46 ();
301+ return $ this ->parse_reply_to_from_custom_header ();
301302 } else {
302- return $ this ->get_reply_to_above46 ();
303+ return $ this ->parse_reply_to ();
303304 }
304305 }
305306
0 commit comments