Skip to content

Commit cfc389c

Browse files
committed
Fix conflict resolve leftovers, fix variable name
1 parent b2fab1d commit cfc389c

File tree

3 files changed

+4
-17
lines changed

3 files changed

+4
-17
lines changed

admin.widget.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ public function render_transactional_field()
308308
{
309309
printf('<label><input type="checkbox" id="transactional" name="sp_settings[transactional]" value="1" %s />Mark emails as transactional</label>
310310
<br/><small>Upon checked, by default, it\'ll set mark all emails as transactional. It should be set false (using hooks) for non-transactional emails.</small>',
311-
$this->options['transactional'] ? 'checked' : '');
311+
$this->settings['transactional'] ? 'checked' : '');
312312

313313
}
314314
}

mailer.http.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ protected function get_request_body()
8383
$body['options'] = array(
8484
'open_tracking' => (bool) apply_filters('wpsp_open_tracking', $tracking_enabled),
8585
'click_tracking' => (bool) apply_filters('wpsp_click_tracking', $tracking_enabled),
86-
'transactional' => apply_filters('wpsp_transactional', $this->options['transactional'])
86+
'transactional' => (bool) apply_filters('wpsp_transactional', $this->settings['transactional'])
8787
);
8888

8989
// pass through either stored template or inline content

mailer.smtp.class.php

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,29 +25,16 @@ public function configure_phpmailer($phpmailer) {
2525
$tracking_enabled = (bool) $settings['enable_tracking'];
2626
$x_msys_api = array(
2727
'options' => array (
28-
<<<<<<< 23ff7110c4c175f7b92f47caf3662175c6fb88de
2928
'open_tracking' => (bool) apply_filters('wpsp_open_tracking', $tracking_enabled),
30-
'click_tracking' => (bool) apply_filters('wpsp_click_tracking', $tracking_enabled)
31-
=======
32-
'open_tracking' => $tracking_enabled,
33-
'click_tracking' => $tracking_enabled,
34-
<<<<<<< 8afed5dc7c524a0f928b57a5579f50e65216f704
35-
'transactional' => true
36-
>>>>>>> Add transaction option
37-
=======
38-
'transactional' => apply_filters('wpsp_transactional', $options['transactional'])
39-
>>>>>>> Add transactional support
29+
'click_tracking' => (bool) apply_filters('wpsp_click_tracking', $tracking_enabled),
30+
'transactional' => (bool) apply_filters('wpsp_transactional', $settings['transactional'])
4031
)
4132
);
4233

4334
$phpmailer->isSMTP();
4435
$phpmailer->SMTPSecure = 'tls';
4536
$phpmailer->Port = !empty($settings['port']) ? intval($settings['port']) : 587;
4637
$phpmailer->Host = 'smtp.sparkpostmail.com';
47-
<<<<<<< 23ff7110c4c175f7b92f47caf3662175c6fb88de
48-
=======
49-
50-
>>>>>>> Add transaction option
5138
$phpmailer->SMTPAuth = true;
5239
$phpmailer->Username = 'SMTP_Injection';
5340
$phpmailer->Password = apply_filters('wpsp_api_key', $settings['password']);

0 commit comments

Comments
 (0)