Skip to content

Commit 438fd24

Browse files
Updated version. Fix issue with input fields
1 parent 8382183 commit 438fd24

8 files changed

Lines changed: 24 additions & 43 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
## Changelog
22

3+
##### 6.1.4
4+
- Fix issues in the input fields. Tested with new WP version
5+
36
##### 6.1.2
47
- Fix possible error when code switch websites and could leave website in a broken state
58

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
- Contributors: Mailjet
44
- Tags: email, marketing, signup, newsletter, widget, smtp, woocommerce, contact form 7
55
- Requires at least: 4.4
6-
- Tested up to: 6.6.2
7-
- Stable tag: 6.1.3
6+
- Tested up to: 6.8.1
7+
- Stable tag: 6.1.4
88
- Requires PHP: 7.4
99
- License: GPLv2 or later
1010
- License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -162,6 +162,9 @@ find vendor/ -type d -name ".git" -exec rm -rf {} \;
162162

163163
## Changelog
164164

165+
##### 6.1.4
166+
- Fix issues in the input fields. Tested with new WP version
167+
165168
##### 6.1.2
166169
- Fix possible error when code switch websites and could leave website in a broken state
167170

readme.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
- Contributors: Mailjet
44
- Tags: email, marketing, signup, newsletter, widget, smtp, woocommerce, contact form 7
55
- Requires at least: 4.4
6-
- Tested up to: 6.6.2
7-
- Stable tag: 6.1.3
6+
- Tested up to: 6.8.1
7+
- Stable tag: 6.1.4
88
- Requires PHP: 7.4
99
- License: GPLv2 or later
1010
- License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -152,6 +152,9 @@ find vendor/ -type d -name ".git" -exec rm -rf {} \;
152152

153153
== Changelog ==
154154

155+
= 6.1.4 =
156+
- Fix issues in the input fields. Tested with new WP version
157+
155158
= 6.1.2 =
156159
- Fix possible error when code switch websites and could leave website in a broken state
157160

src/includes/MailjetSettings.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -328,11 +328,7 @@ public static function redirectJs( $urlToRedirect ) {
328328
}
329329
?>
330330
<script type="text/javascript">
331-
window.location.href = '
332-
<?php
333-
echo esc_attr($urlToRedirect);
334-
?>
335-
';
331+
window.location.href = '<?php echo esc_attr($urlToRedirect); ?> ';
336332
</script>
337333
<?php
338334
echo esc_attr('<META HTTP-EQUIV="refresh" content="0;URL=' . $urlToRedirect . '">');

src/includes/SettingsPages/EnableSendingSettings.php

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,7 @@ public function mailjet_enable_sending_cb( $args ) {
8080
_e('From: Name', 'mailjet-for-wordpress');
8181
?>
8282
</b></label>
83-
<input name="mailjet_from_name" type="text" id="mailjet_from_name" value="
84-
<?php
85-
echo esc_attr($mailjetFromName);
86-
?>
87-
" class="regular-text code">
83+
<input name="mailjet_from_name" type="text" id="mailjet_from_name" value="<?php echo esc_attr($mailjetFromName);?>" class="regular-text code">
8884
</div>
8985
<div id="mailjet_from_email_fields" class="fromFld">
9086
<label class="mj-label" for="mailjet_from_email"><b>
@@ -114,11 +110,7 @@ public function mailjet_enable_sending_cb( $args ) {
114110
}
115111
}
116112
?>
117-
<option value="
118-
<?php
119-
echo esc_attr($mailjetSender['Email']);
120-
?>
121-
"
113+
<option value="<?php echo esc_attr($mailjetSender['Email']);?>"
122114
<?php
123115
echo esc_attr($mailjetFromEmail == $mailjetSender['Email']) ? 'selected="selected"' : '';
124116
?>
@@ -156,7 +148,7 @@ public function mailjet_enable_sending_cb( $args ) {
156148
echo esc_attr($mailjetPort) == 25 ? 'selected="selected"' : '';
157149
?>
158150
> 25 </option>
159-
<option value="465"
151+
<option value="465"
160152
<?php
161153
echo esc_attr($mailjetPort) == 465 ? 'selected="selected"' : '';
162154
?>
@@ -206,11 +198,7 @@ public function mailjet_enable_sending_cb( $args ) {
206198
</b></label>
207199
<div class="test_email_fields_group">
208200
<input type="text" size="30" name="mailjet_test_address" id="mailjet_test_address" />
209-
<input type="submit" value="
210-
<?php
211-
_e('Send', 'mailjet-for-wordpress');
212-
?>
213-
" name="send_test_email_btn" class="mj-btn btnSecondary MailjetSubmit" id="send_test_email_btn"/>
201+
<input type="submit" value="<?php _e('Send', 'mailjet-for-wordpress');?>" name="send_test_email_btn" class="mj-btn btnSecondary MailjetSubmit" id="send_test_email_btn"/>
214202
</div>
215203
</div>
216204
</div>

src/includes/SettingsPages/InitialSettings.php

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -71,21 +71,13 @@ public function mailjet_initial_settings_cb( $args ) {
7171
_e('<b>Api Key</b>', 'mailjet-for-wordpress');
7272
?>
7373
</label>
74-
<input name="mailjet_apikey" type="text" id="mailjet_apikey" value="
75-
<?php
76-
echo esc_attr($mailjetApikey);
77-
?>
78-
" class="mailjet_apikey" required="required">
74+
<input name="mailjet_apikey" type="text" id="mailjet_apikey" value="<?php echo trim(esc_attr($mailjetApikey));?>" class="mailjet_apikey" required="required">
7975
<label class="mj-label" for="mailjet_apisecret">
8076
<?php
8177
_e('<b>Secret Key</b>', 'mailjet-for-wordpress');
8278
?>
8379
</label>
84-
<input name="mailjet_apisecret" type="text" id="mailjet_apisecret" value="
85-
<?php
86-
echo esc_attr($mailjetApiSecret);
87-
?>
88-
" class="mailjet_apisecret" required="required">
80+
<input name="mailjet_apisecret" type="text" id="mailjet_apisecret" value="<?php echo trim(esc_attr($mailjetApiSecret));?>" class="mailjet_apisecret" required="required">
8981
</fieldset>
9082

9183
<?php

src/includes/SettingsPages/IntegrationsSettings.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -216,11 +216,7 @@ private function wooIntegration( $mailjetSyncContactList ) {
216216
echo __('Checkbox text', 'mailjet-for-wordpress');
217217
?>
218218
</label>
219-
<input name="woocommerce[mailjet_woo_checkout_box_text]" id="sub_letter" type="text" value="
220-
<?php
221-
echo esc_attr($checkoutCheckboxText);
222-
?>
223-
" class="mj-text-field" placeholder="
219+
<input name="woocommerce[mailjet_woo_checkout_box_text]" id="sub_letter" type="text" value="<?php echo esc_attr($checkoutCheckboxText);?>" class="mj-text-field" placeholder="
224220
<?php
225221
echo __('Subscribe to our newsletter', 'mailjet-for-wordpress');
226222
?>

wp-mailjet.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
* Plugin Name: Mailjet for WordPress
1515
* Plugin URI: https://www.mailjet.com/partners/wordpress/
1616
* Description: The Best WordPress Plugin For Email Newsletters.
17-
* Version: 6.1.3
18-
* Tested up to: 6.6.2
17+
* Version: 6.1.4
18+
* Tested up to: 6.8.1
1919
* Author: Mailjet SAS
2020
* Author URI: http://mailjet.com
2121
* License: GPL-2.0+
@@ -56,7 +56,7 @@
5656
/**
5757
* Mailjet plugin version.
5858
*/
59-
define('MAILJET_VERSION', '6.1.3');
59+
define('MAILJET_VERSION', '6.1.4');
6060

6161
/**
6262
* Mailjet Plugid dir.

0 commit comments

Comments
 (0)