Version Description
- Add option to configure text version using setText() function from the header
- Tested up to 4.7
Download this release
Release Info
Developer | team-rs |
Plugin | SendGrid |
Version | 1.10.3 |
Comparing to | |
See all releases |
Code changes from version 1.10.2 to 1.10.3
- lib/sendgrid/sendgrid-wp-mail.php +6 -0
- readme.txt +8 -2
- wpsendgrid.php +1 -1
lib/sendgrid/sendgrid-wp-mail.php
CHANGED
@@ -330,6 +330,12 @@ function wp_mail( $to, $subject, $message, $headers = '', $attachments = array()
|
|
330 |
$content_type = apply_filters( 'wp_mail_content_type', $content_type );
|
331 |
|
332 |
$text_content = $message;
|
|
|
|
|
|
|
|
|
|
|
|
|
333 |
if ( array_key_exists( 'sendgrid_mail_text' , $GLOBALS['wp_filter'] ) ) {
|
334 |
$text_content = apply_filters( 'sendgrid_mail_text', $text_content );
|
335 |
}
|
330 |
$content_type = apply_filters( 'wp_mail_content_type', $content_type );
|
331 |
|
332 |
$text_content = $message;
|
333 |
+
// check if setText() is set in the header
|
334 |
+
$text_content_header = $mail->getText();
|
335 |
+
if ( isset( $text_content_header ) and false != $text_content_header ) {
|
336 |
+
$text_content = $text_content_header;
|
337 |
+
}
|
338 |
+
// check if filter sendgrid_mail_text is set
|
339 |
if ( array_key_exists( 'sendgrid_mail_text' , $GLOBALS['wp_filter'] ) ) {
|
340 |
$text_content = apply_filters( 'sendgrid_mail_text', $text_content );
|
341 |
}
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: team-rs
|
|
3 |
Donate link: http://sendgrid.com/
|
4 |
Tags: email, email reliability, email templates, sendgrid, smtp, transactional email, wp_mail,email infrastructure, email marketing, marketing email, deliverability, email deliverability, email delivery, email server, mail server, email integration, cloud email
|
5 |
Requires at least: 4.2
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 1.10.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -255,6 +255,9 @@ The settings for all sites in the network can be configured only by the Network
|
|
255 |
|
256 |
== Changelog ==
|
257 |
|
|
|
|
|
|
|
258 |
= 1.10.2 =
|
259 |
* Add options to configure subscription widget form (labels, padding)
|
260 |
= 1.10.1 =
|
@@ -387,6 +390,9 @@ The settings for all sites in the network can be configured only by the Network
|
|
387 |
|
388 |
== Upgrade notice ==
|
389 |
|
|
|
|
|
|
|
390 |
= 1.10.2 =
|
391 |
* Add options to configure subscription widget form (labels, padding)
|
392 |
= 1.10.1 =
|
3 |
Donate link: http://sendgrid.com/
|
4 |
Tags: email, email reliability, email templates, sendgrid, smtp, transactional email, wp_mail,email infrastructure, email marketing, marketing email, deliverability, email deliverability, email delivery, email server, mail server, email integration, cloud email
|
5 |
Requires at least: 4.2
|
6 |
+
Tested up to: 4.7
|
7 |
+
Stable tag: 1.10.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
255 |
|
256 |
== Changelog ==
|
257 |
|
258 |
+
= 1.10.3 =
|
259 |
+
* Add option to configure text version using setText() function from the header
|
260 |
+
* Tested up to 4.7
|
261 |
= 1.10.2 =
|
262 |
* Add options to configure subscription widget form (labels, padding)
|
263 |
= 1.10.1 =
|
390 |
|
391 |
== Upgrade notice ==
|
392 |
|
393 |
+
= 1.10.3 =
|
394 |
+
* Add option to configure text version using setText() function from the header
|
395 |
+
* Tested up to 4.7
|
396 |
= 1.10.2 =
|
397 |
* Add options to configure subscription widget form (labels, padding)
|
398 |
= 1.10.1 =
|
wpsendgrid.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: SendGrid
|
4 |
Plugin URI: http://wordpress.org/plugins/sendgrid-email-delivery-simplified/
|
5 |
Description: Email Delivery. Simplified. SendGrid's cloud-based email infrastructure relieves businesses of the cost and complexity of maintaining custom email systems. SendGrid provides reliable delivery, scalability and real-time analytics along with flexible APIs that make custom integration a breeze.
|
6 |
-
Version: 1.10.
|
7 |
Author: SendGrid
|
8 |
Author URI: http://sendgrid.com
|
9 |
Text Domain: sendgrid-email-delivery-simplified
|
3 |
Plugin Name: SendGrid
|
4 |
Plugin URI: http://wordpress.org/plugins/sendgrid-email-delivery-simplified/
|
5 |
Description: Email Delivery. Simplified. SendGrid's cloud-based email infrastructure relieves businesses of the cost and complexity of maintaining custom email systems. SendGrid provides reliable delivery, scalability and real-time analytics along with flexible APIs that make custom integration a breeze.
|
6 |
+
Version: 1.10.3
|
7 |
Author: SendGrid
|
8 |
Author URI: http://sendgrid.com
|
9 |
Text Domain: sendgrid-email-delivery-simplified
|