Skip to content

Commit

Permalink
[SUP] Wordpress widget "Advanced form customization" does not work wi…
Browse files Browse the repository at this point in the history
…th WP 6.0.1
  • Loading branch information
oleksandr-mykhailenko committed Aug 13, 2022
1 parent 58cff50 commit b1282b6
Show file tree
Hide file tree
Showing 9 changed files with 160 additions and 135 deletions.
14 changes: 7 additions & 7 deletions languages/mailjet-for-wordpress-de_DE.po
Original file line number Diff line number Diff line change
Expand Up @@ -1578,10 +1578,10 @@ msgid "contactProperties0"
msgstr "46827"

msgid "propertyDataType0"
msgstr "0"
msgstr "1"

msgid "EnglishLabel0"
msgstr "First Name"
msgstr "Set your name"

msgid "FrenchLabel0"
msgstr ""
Expand All @@ -1596,13 +1596,13 @@ msgid "ItalianLabel0"
msgstr ""

msgid "contactProperties1"
msgstr ""
msgstr "67144"

msgid "propertyDataType1"
msgstr "0"

msgid "EnglishLabel1"
msgstr ""
msgstr "Custom prop"

msgid "FrenchLabel1"
msgstr ""
Expand All @@ -1617,13 +1617,13 @@ msgid "ItalianLabel1"
msgstr ""

msgid "contactProperties2"
msgstr ""
msgstr "46829"

msgid "propertyDataType2"
msgstr "0"
msgstr "1"

msgid "EnglishLabel2"
msgstr ""
msgstr "COUNTRY"

msgid "FrenchLabel2"
msgstr ""
Expand Down
36 changes: 18 additions & 18 deletions languages/mailjet-for-wordpress-en_US.po
Original file line number Diff line number Diff line change
Expand Up @@ -1113,19 +1113,19 @@ msgid "language_checkbox"
msgstr "1"

msgid "title"
msgstr "My custom form22"
msgstr "My custom form"

msgid "list"
msgstr "21908"
msgstr "21933"

msgid "language_mandatory_email"
msgstr "test@gmail.com"
msgstr "email here 1"

msgid "language_mandatory_button"
msgstr ""
msgstr "Send"

msgid "confirmation_email_message_input"
msgstr "test1"
msgstr ""

msgid "subscription_confirmed_message_input"
msgstr ""
Expand All @@ -1137,22 +1137,22 @@ msgid "already_subscribed_message_input"
msgstr ""

msgid "invalid_data_format_message_input"
msgstr "sss"
msgstr ""

msgid "generic_technical_error_message_input"
msgstr "ss"
msgstr ""

msgid "email_subject"
msgstr "my subject"
msgstr ""

msgid "email_content_title"
msgstr "please, please"
msgstr ""

msgid "email_content_main_text"
msgstr "main tet"
msgstr ""

msgid "email_content_confirm_button"
msgstr "hello moto"
msgstr ""

msgid "email_content_after_button"
msgstr ""
Expand All @@ -1161,10 +1161,10 @@ msgid "contactProperties0"
msgstr "46827"

msgid "propertyDataType0"
msgstr "0"
msgstr "1"

msgid "EnglishLabel0"
msgstr "First Name"
msgstr "Set your name"

msgid "FrenchLabel0"
msgstr ""
Expand All @@ -1179,13 +1179,13 @@ msgid "ItalianLabel0"
msgstr ""

msgid "contactProperties1"
msgstr ""
msgstr "67144"

msgid "propertyDataType1"
msgstr "0"

msgid "EnglishLabel1"
msgstr ""
msgstr "Custom prop"

msgid "FrenchLabel1"
msgstr ""
Expand All @@ -1200,13 +1200,13 @@ msgid "ItalianLabel1"
msgstr ""

msgid "contactProperties2"
msgstr ""
msgstr "46829"

msgid "propertyDataType2"
msgstr "0"
msgstr "1"

msgid "EnglishLabel2"
msgstr ""
msgstr "COUNTRY"

msgid "FrenchLabel2"
msgstr ""
Expand Down
14 changes: 7 additions & 7 deletions languages/mailjet-for-wordpress-es_ES.po
Original file line number Diff line number Diff line change
Expand Up @@ -1582,10 +1582,10 @@ msgid "contactProperties0"
msgstr "46827"

msgid "propertyDataType0"
msgstr "0"
msgstr "1"

msgid "EnglishLabel0"
msgstr "First Name"
msgstr "Set your name"

msgid "FrenchLabel0"
msgstr ""
Expand All @@ -1600,13 +1600,13 @@ msgid "ItalianLabel0"
msgstr ""

msgid "contactProperties1"
msgstr ""
msgstr "67144"

msgid "propertyDataType1"
msgstr "0"

msgid "EnglishLabel1"
msgstr ""
msgstr "Custom prop"

msgid "FrenchLabel1"
msgstr ""
Expand All @@ -1621,13 +1621,13 @@ msgid "ItalianLabel1"
msgstr ""

msgid "contactProperties2"
msgstr ""
msgstr "46829"

msgid "propertyDataType2"
msgstr "0"
msgstr "1"

msgid "EnglishLabel2"
msgstr ""
msgstr "COUNTRY"

msgid "FrenchLabel2"
msgstr ""
Expand Down
14 changes: 7 additions & 7 deletions languages/mailjet-for-wordpress-fr_FR.po
Original file line number Diff line number Diff line change
Expand Up @@ -1596,10 +1596,10 @@ msgid "contactProperties0"
msgstr "46827"

msgid "propertyDataType0"
msgstr "0"
msgstr "1"

msgid "EnglishLabel0"
msgstr "First Name"
msgstr "Set your name"

msgid "FrenchLabel0"
msgstr ""
Expand All @@ -1614,13 +1614,13 @@ msgid "ItalianLabel0"
msgstr ""

msgid "contactProperties1"
msgstr ""
msgstr "67144"

msgid "propertyDataType1"
msgstr "0"

msgid "EnglishLabel1"
msgstr ""
msgstr "Custom prop"

msgid "FrenchLabel1"
msgstr ""
Expand All @@ -1635,13 +1635,13 @@ msgid "ItalianLabel1"
msgstr ""

msgid "contactProperties2"
msgstr ""
msgstr "46829"

msgid "propertyDataType2"
msgstr "0"
msgstr "1"

msgid "EnglishLabel2"
msgstr ""
msgstr "COUNTRY"

msgid "FrenchLabel2"
msgstr ""
Expand Down
14 changes: 7 additions & 7 deletions languages/mailjet-for-wordpress-it_IT.po
Original file line number Diff line number Diff line change
Expand Up @@ -1570,10 +1570,10 @@ msgid "contactProperties0"
msgstr "46827"

msgid "propertyDataType0"
msgstr "0"
msgstr "1"

msgid "EnglishLabel0"
msgstr "First Name"
msgstr "Set your name"

msgid "FrenchLabel0"
msgstr ""
Expand All @@ -1588,13 +1588,13 @@ msgid "ItalianLabel0"
msgstr ""

msgid "contactProperties1"
msgstr ""
msgstr "67144"

msgid "propertyDataType1"
msgstr "0"

msgid "EnglishLabel1"
msgstr ""
msgstr "Custom prop"

msgid "FrenchLabel1"
msgstr ""
Expand All @@ -1609,13 +1609,13 @@ msgid "ItalianLabel1"
msgstr ""

msgid "contactProperties2"
msgstr ""
msgstr "46829"

msgid "propertyDataType2"
msgstr "0"
msgstr "1"

msgid "EnglishLabel2"
msgstr ""
msgstr "COUNTRY"

msgid "FrenchLabel2"
msgstr ""
Expand Down
4 changes: 2 additions & 2 deletions src/includes/SettingsPages/SubscriptionOptionsSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ public function mailjet_subscribe_confirmation_from_widget($subscription_email,
$params['widget_id'] = $widgetId;
}
$params = http_build_query($params);
$subscriptionTemplate = apply_filters('mailjet_confirmation_email_filename', dirname(dirname(dirname(__FILE__))) . '/templates/confirm-subscription-email.php');
$subscriptionTemplate = apply_filters('mailjet_confirmation_email_filename', dirname(__FILE__, 3) . '/templates/confirm-subscription-email.php');
$message = file_get_contents($subscriptionTemplate);
$permalinkStructure = get_option('permalink_structure');
if (!$thankYouPageId) {
Expand All @@ -378,7 +378,7 @@ public function mailjet_subscribe_confirmation_from_widget($subscription_email,
);
$emailParams = apply_filters('mailjet_subscription_widget_email_params', $emailData);
foreach ($emailParams as $key => $value) {
$message = \str_replace($key, $value, $message);
$message = str_replace($key, $value, $message);
}
add_filter('wp_mail_content_type', array($this, 'set_html_content_type'));
return wp_mail($subscription_email, $email_subject, $message, array('From: ' . get_option('blogname') . ' <' . get_option('admin_email') . '>'));
Expand Down
Loading

0 comments on commit b1282b6

Please sign in to comment.