diff options
author | yehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664> | 2018-03-21 21:54:26 +0000 |
---|---|---|
committer | yehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664> | 2018-03-21 21:54:26 +0000 |
commit | 14915f4914ff3f912b267aa034327101b3b170d5 (patch) | |
tree | 2beb9533f0fcb03a8b1509fd36e2bbed605d4583 /Postman/Postman-Email-Log | |
parent | 150115aab01cee9ac0dfa6ff9e2b775aaa8fed81 (diff) | |
download | Post-SMTP-14915f4914ff3f912b267aa034327101b3b170d5.zip |
Fix sendgrid api call structure
Diffstat (limited to 'Postman/Postman-Email-Log')
-rw-r--r-- | Postman/Postman-Email-Log/PostmanEmailLogView.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Postman/Postman-Email-Log/PostmanEmailLogView.php b/Postman/Postman-Email-Log/PostmanEmailLogView.php index a754a42..2db03d7 100644 --- a/Postman/Postman-Email-Log/PostmanEmailLogView.php +++ b/Postman/Postman-Email-Log/PostmanEmailLogView.php @@ -366,9 +366,10 @@ class PostmanEmailLogView extends WP_List_Table { $date = sprintf( _x( '%s ago', 'A relative time as in "five days ago"', Postman::TEXT_DOMAIN ), $humanTime ); } $meta_values = get_post_meta( $post->ID ); + $sent_to = array_map( 'sanitize_email', explode( ',' , $meta_values ['to_header'] [0] ) ); $flattenedPost = array( // the post title must be escaped as they are displayed in the HTML output - 'sent_to' => sanitize_email( $meta_values ['to_header'] [0] ), + 'sent_to' => implode( ', ', $sent_to ), 'title' => esc_html( $post->post_title ), // the post status must be escaped as they are displayed in the HTML output 'status' => ($post->post_excerpt != null ? esc_html( $post->post_excerpt ) : __( 'Sent', Postman::TEXT_DOMAIN )), |