Skip to content

Commit 80f6934

Browse files
committed
json encode after filter, fix getting started link
1 parent f5cf5f4 commit 80f6934

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

admin.widget.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function test_email_sending($recipient, $debug = false)
8787
$this->render_message('Test email sent successfully', 'updated');
8888
}
8989
} else {
90-
$this->render_message('Test email could not be sent. Please check your plugin settings and refer to <a href="https://support.sparkpost.com/customer/en/portal/topics/770787-getting-started/articles" target="_blank">Getting Started</a> in the <a href="https://support.sparkpost.com/" target="_blank">SparkPost Support Center</a>.');
90+
$this->render_message('Test email could not be sent. Please check your plugin settings and refer to <a href="https://support.sparkpost.com/customer/portal/articles/2670627-sparkpost-new-user-guide" target="_blank">Getting Started</a> in the <a href="https://support.sparkpost.com/" target="_blank">SparkPost Support Center</a>.');
9191
}
9292
}
9393

mailer.smtp.class.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function configure_phpmailer($phpmailer) {
2222
return;
2323
}
2424

25-
$tracking_enabled = (bool) $settings['enable_tracking'];
25+
$tracking_enabled = $settings['enable_tracking'];
2626
$x_msys_api = array(
2727
'options' => array (
2828
'open_tracking' => (bool) apply_filters('wpsp_open_tracking', $tracking_enabled),
@@ -39,7 +39,7 @@ public function configure_phpmailer($phpmailer) {
3939
$phpmailer->Username = 'SMTP_Injection';
4040
$phpmailer->Password = apply_filters('wpsp_api_key', $settings['password']);
4141

42-
$json_x_msys_api = apply_filters('wpsp_smtp_msys_api', json_encode($x_msys_api));
43-
$phpmailer->addCustomHeader('X-MSYS-API', $json_x_msys_api);
42+
$json_x_msys_api = apply_filters('wpsp_smtp_msys_api', $x_msys_api);
43+
$phpmailer->addCustomHeader('X-MSYS-API', json_encode($json_x_msys_api));
4444
}
4545
}

0 commit comments

Comments
 (0)