MailChimp for WordPress - Version 3.1.3

Version Description

Download this release

Release Info

Developer DvanKooten
Plugin Icon 128x128 MailChimp for WordPress
Version 3.1.3
Comparing to
See all releases

Code changes from version 3.1.2 to 3.1.3

CHANGELOG.md CHANGED
@@ -1,6 +1,17 @@
1
  Changelog
2
  =========
3
 
 
 
 
 
 
 
 
 
 
 
 
4
  #### 3.1.2 - February 15, 2016
5
 
6
  **Fixes**
1
  Changelog
2
  =========
3
 
4
+ #### 3.1.3 - February 17, 2016
5
+
6
+ **Fixes**
7
+
8
+ - Issue with API array responses (for the [MailChimp Activity add-on](https://wordpress.org/plugins/mc4wp-activity/), for example).
9
+
10
+ **Improvements**
11
+
12
+ - Updated Dutch, Portugese, Spanish and Italian translations.
13
+
14
+
15
  #### 3.1.2 - February 15, 2016
16
 
17
  **Fixes**
includes/class-api.php CHANGED
@@ -463,13 +463,15 @@ class MC4WP_API {
463
  $this->last_response = $response;
464
 
465
  // store error (if any)
466
- if( ! empty( $response->error ) ) {
467
- $this->error_message = $response->error;
468
- }
 
469
 
470
- // store error code (if any)
471
- if( ! empty( $response->code ) ) {
472
- $this->error_code = (int) $response->code;
 
473
  }
474
 
475
  return $response;
@@ -551,7 +553,7 @@ class MC4WP_API {
551
  // decode response body
552
  $body = wp_remote_retrieve_body( $response );
553
  $data = json_decode( $body );
554
- if( is_object( $data ) ) {
555
  return $data;
556
  }
557
 
463
  $this->last_response = $response;
464
 
465
  // store error (if any)
466
+ if( is_object( $response ) ) {
467
+ if( ! empty( $response->error ) ) {
468
+ $this->error_message = $response->error;
469
+ }
470
 
471
+ // store error code (if any)
472
+ if( ! empty( $response->code ) ) {
473
+ $this->error_code = (int) $response->code;
474
+ }
475
  }
476
 
477
  return $response;
553
  // decode response body
554
  $body = wp_remote_retrieve_body( $response );
555
  $data = json_decode( $body );
556
+ if( ! is_null( $data ) ) {
557
  return $data;
558
  }
559
 
languages/mailchimp-for-wp-pt_BR.mo CHANGED
Binary file
languages/mailchimp-for-wp-pt_BR.po CHANGED
@@ -2,6 +2,7 @@
2
  # This file is distributed under the same license as the MailChimp for WordPress package.
3
  # Translators:
4
  # Douglas de Araujo <douglas@ludicaeventos.com.br>, 2015
 
5
  # Felipe Porto <felipe@appdigital.com.br>, 2015
6
  # Leandro de Santi <leandro.santi@gmail.com>, 2014-2015
7
  # Liane Bez <liane@lianebez.com.br>, 2016
@@ -13,8 +14,8 @@ msgstr ""
13
  "Project-Id-Version: MailChimp for WordPress\n"
14
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/mailchimp-for-wp\n"
15
  "POT-Creation-Date: 2015-11-30 10:15:18+00:00\n"
16
- "PO-Revision-Date: 2016-01-25 21:50+0000\n"
17
- "Last-Translator: Liane Bez <liane@lianebez.com.br>\n"
18
  "Language-Team: Portuguese (Brazil) (http://www.transifex.com/ibericode/mailchimp-for-wordpress/language/pt_BR/)\n"
19
  "MIME-Version: 1.0\n"
20
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -90,7 +91,7 @@ msgstr "Sucesso! O cache de configuração para suas listas MailChimp foi atuali
90
  msgid ""
91
  "This is a pro-only feature. Please upgrade to the premium version to be able"
92
  " to use it."
93
- msgstr ""
94
 
95
  #: includes/admin/class-admin.php:323 includes/views/general-settings.php:28
96
  msgid "MailChimp API Settings"
@@ -139,7 +140,7 @@ msgstr "Uma vez por mês"
139
 
140
  #: includes/admin/migrations/3.0-form-1-post-type.php:35
141
  msgid "Default sign-up form"
142
- msgstr ""
143
 
144
  #: includes/class-api.php:83
145
  msgid "Read more about common connectivity issues."
@@ -156,7 +157,7 @@ msgstr ""
156
 
157
  #: includes/forms/class-admin.php:176
158
  msgid "Preview form"
159
- msgstr ""
160
 
161
  #: includes/forms/class-admin.php:279
162
  msgid "Form not found."
@@ -193,7 +194,7 @@ msgstr "A URL da página."
193
 
194
  #: includes/forms/class-form-tags.php:77
195
  msgid "The path of the page."
196
- msgstr ""
197
 
198
  #: includes/forms/class-form-tags.php:82
199
  msgid "The current date. Example: %s."
@@ -205,7 +206,7 @@ msgstr "A hora atual. Exemplo: %s."
205
 
206
  #: includes/forms/class-form-tags.php:92
207
  msgid "The site's language. Example: %s."
208
- msgstr ""
209
 
210
  #: includes/forms/class-form-tags.php:97
211
  msgid "The visitor's IP address. Example: %s."
@@ -247,7 +248,7 @@ msgstr "Adicionar novo formulário"
247
 
248
  #: includes/forms/views/add-form.php:27
249
  msgid "What is the name of this form?"
250
- msgstr ""
251
 
252
  #: includes/forms/views/add-form.php:30
253
  msgid "Enter your form title.."
@@ -290,15 +291,15 @@ msgstr "Digite o título do formulário aqui"
290
 
291
  #: includes/forms/views/edit-form.php:46
292
  msgid "Enter the title of your sign-up form"
293
- msgstr ""
294
 
295
  #: includes/forms/views/edit-form.php:54
296
  msgid "Get shortcode"
297
- msgstr ""
298
 
299
  #: includes/forms/views/edit-form.php:59
300
  msgid "Preview this form"
301
- msgstr ""
302
 
303
  #: includes/forms/views/parts/add-fields-help.php:4
304
  #: includes/forms/views/tabs/form-fields.php:10
@@ -313,11 +314,11 @@ msgstr ""
313
 
314
  #: includes/forms/views/parts/add-fields-help.php:12
315
  msgid "Here's how:"
316
- msgstr ""
317
 
318
  #: includes/forms/views/parts/add-fields-help.php:17
319
  msgid "Log in to your MailChimp account."
320
- msgstr ""
321
 
322
  #: includes/forms/views/parts/add-fields-help.php:22
323
  msgid "Add list fields to any of your selected lists."
@@ -329,7 +330,7 @@ msgstr ""
329
 
330
  #: includes/forms/views/parts/add-fields-help.php:29
331
  msgid "Edit list fields for"
332
- msgstr ""
333
 
334
  #: includes/forms/views/parts/add-fields-help.php:38
335
  msgid ""
@@ -366,7 +367,7 @@ msgstr "Básico"
366
 
367
  #: includes/forms/views/tabs/form-appearance.php:7
368
  msgid "Form Themes"
369
- msgstr ""
370
 
371
  #: includes/forms/views/tabs/form-appearance.php:8
372
  msgid "Light Theme"
@@ -504,7 +505,7 @@ msgstr "Configurações de Formulários"
504
 
505
  #: includes/forms/views/tabs/form-settings.php:5
506
  msgid "MailChimp specific settings"
507
- msgstr ""
508
 
509
  #: includes/forms/views/tabs/form-settings.php:12
510
  msgid "Lists this form subscribes to"
@@ -568,7 +569,7 @@ msgstr "Selecione \"sim\" se você deseja que as pessoas confirme o email ao se
568
 
569
  #: includes/forms/views/tabs/form-settings.php:50
570
  msgid "Send final welcome email?"
571
- msgstr ""
572
 
573
  #: includes/forms/views/tabs/form-settings.php:60
574
  #: includes/integrations/views/integration-settings.php:169
@@ -604,7 +605,7 @@ msgstr ""
604
  #: includes/forms/views/tabs/form-settings.php:93
605
  #: includes/integrations/views/integration-settings.php:207
606
  msgid "What does this do?"
607
- msgstr ""
608
 
609
  #: includes/forms/views/tabs/form-settings.php:104
610
  msgid "Form behaviour"
@@ -837,7 +838,7 @@ msgstr "Editar esta lista no MailChimp"
837
 
838
  #: includes/views/parts/lists-overview.php:59
839
  msgid "%s (%s) with field type %s."
840
- msgstr ""
841
 
842
  #: includes/views/parts/lists-overview.php:83
843
  msgid "%s (ID: %s) with type %s."
@@ -847,7 +848,7 @@ msgstr ""
847
  msgid ""
848
  "To integrate with Contact Form 7, configure the settings below and then add "
849
  "%s to your CF7 form mark-up."
850
- msgstr ""
851
 
852
  #: integrations/custom/admin-before.php:2
853
  msgid ""
@@ -857,7 +858,7 @@ msgstr ""
857
 
858
  #: integrations/woocommerce/class-woocommerce.php:102
859
  msgid "Order #%d"
860
- msgstr ""
861
 
862
  #. Plugin Name of the plugin/theme
863
  msgid "MailChimp for WordPress"
@@ -877,8 +878,8 @@ msgstr ""
877
 
878
  #. Author of the plugin/theme
879
  msgid "ibericode"
880
- msgstr ""
881
 
882
  #. Author URI of the plugin/theme
883
  msgid "https://ibericode.com/"
884
- msgstr ""
2
  # This file is distributed under the same license as the MailChimp for WordPress package.
3
  # Translators:
4
  # Douglas de Araujo <douglas@ludicaeventos.com.br>, 2015
5
+ # fabricio corrêa <fabricionthweb@gmail.com>, 2016
6
  # Felipe Porto <felipe@appdigital.com.br>, 2015
7
  # Leandro de Santi <leandro.santi@gmail.com>, 2014-2015
8
  # Liane Bez <liane@lianebez.com.br>, 2016
14
  "Project-Id-Version: MailChimp for WordPress\n"
15
  "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/mailchimp-for-wp\n"
16
  "POT-Creation-Date: 2015-11-30 10:15:18+00:00\n"
17
+ "PO-Revision-Date: 2016-02-15 19:27+0000\n"
18
+ "Last-Translator: fabricio corrêa <fabricionthweb@gmail.com>\n"
19
  "Language-Team: Portuguese (Brazil) (http://www.transifex.com/ibericode/mailchimp-for-wordpress/language/pt_BR/)\n"
20
  "MIME-Version: 1.0\n"
21
  "Content-Type: text/plain; charset=UTF-8\n"
91
  msgid ""
92
  "This is a pro-only feature. Please upgrade to the premium version to be able"
93
  " to use it."
94
+ msgstr "Este plugin tem uma versão premium ainda melhor, você vai adorar."
95
 
96
  #: includes/admin/class-admin.php:323 includes/views/general-settings.php:28
97
  msgid "MailChimp API Settings"
140
 
141
  #: includes/admin/migrations/3.0-form-1-post-type.php:35
142
  msgid "Default sign-up form"
143
+ msgstr "Formulário de inscrição padrão"
144
 
145
  #: includes/class-api.php:83
146
  msgid "Read more about common connectivity issues."
157
 
158
  #: includes/forms/class-admin.php:176
159
  msgid "Preview form"
160
+ msgstr "Visualizar formulário"
161
 
162
  #: includes/forms/class-admin.php:279
163
  msgid "Form not found."
194
 
195
  #: includes/forms/class-form-tags.php:77
196
  msgid "The path of the page."
197
+ msgstr "A URL da página."
198
 
199
  #: includes/forms/class-form-tags.php:82
200
  msgid "The current date. Example: %s."
206
 
207
  #: includes/forms/class-form-tags.php:92
208
  msgid "The site's language. Example: %s."
209
+ msgstr "Idioma do site. Exemplo: %s."
210
 
211
  #: includes/forms/class-form-tags.php:97
212
  msgid "The visitor's IP address. Example: %s."
248
 
249
  #: includes/forms/views/add-form.php:27
250
  msgid "What is the name of this form?"
251
+ msgstr "Qual o nome do formulário?"
252
 
253
  #: includes/forms/views/add-form.php:30
254
  msgid "Enter your form title.."
291
 
292
  #: includes/forms/views/edit-form.php:46
293
  msgid "Enter the title of your sign-up form"
294
+ msgstr "Insira um título para seu formulário de inscrição"
295
 
296
  #: includes/forms/views/edit-form.php:54
297
  msgid "Get shortcode"
298
+ msgstr "Obter shortcode"
299
 
300
  #: includes/forms/views/edit-form.php:59
301
  msgid "Preview this form"
302
+ msgstr "Visualize o formulário"
303
 
304
  #: includes/forms/views/parts/add-fields-help.php:4
305
  #: includes/forms/views/tabs/form-fields.php:10
314
 
315
  #: includes/forms/views/parts/add-fields-help.php:12
316
  msgid "Here's how:"
317
+ msgstr "Veja como:"
318
 
319
  #: includes/forms/views/parts/add-fields-help.php:17
320
  msgid "Log in to your MailChimp account."
321
+ msgstr "Entrar na sua conta MailChimp."
322
 
323
  #: includes/forms/views/parts/add-fields-help.php:22
324
  msgid "Add list fields to any of your selected lists."
330
 
331
  #: includes/forms/views/parts/add-fields-help.php:29
332
  msgid "Edit list fields for"
333
+ msgstr "Editar campos para"
334
 
335
  #: includes/forms/views/parts/add-fields-help.php:38
336
  msgid ""
367
 
368
  #: includes/forms/views/tabs/form-appearance.php:7
369
  msgid "Form Themes"
370
+ msgstr "Formulário do tema"
371
 
372
  #: includes/forms/views/tabs/form-appearance.php:8
373
  msgid "Light Theme"
505
 
506
  #: includes/forms/views/tabs/form-settings.php:5
507
  msgid "MailChimp specific settings"
508
+ msgstr "Configurações especiais do MailChimp"
509
 
510
  #: includes/forms/views/tabs/form-settings.php:12
511
  msgid "Lists this form subscribes to"
569
 
570
  #: includes/forms/views/tabs/form-settings.php:50
571
  msgid "Send final welcome email?"
572
+ msgstr "Enviar email de boas vindas na finalização?"
573
 
574
  #: includes/forms/views/tabs/form-settings.php:60
575
  #: includes/integrations/views/integration-settings.php:169
605
  #: includes/forms/views/tabs/form-settings.php:93
606
  #: includes/integrations/views/integration-settings.php:207
607
  msgid "What does this do?"
608
+ msgstr "O que faz isto?"
609
 
610
  #: includes/forms/views/tabs/form-settings.php:104
611
  msgid "Form behaviour"
838
 
839
  #: includes/views/parts/lists-overview.php:59
840
  msgid "%s (%s) with field type %s."
841
+ msgstr "%s (%s) com tipo de campo %s."
842
 
843
  #: includes/views/parts/lists-overview.php:83
844
  msgid "%s (ID: %s) with type %s."
848
  msgid ""
849
  "To integrate with Contact Form 7, configure the settings below and then add "
850
  "%s to your CF7 form mark-up."
851
+ msgstr "Para integração com o Contact Form 7, configure abaixo e adicione %s ao seu formulário CF7 a marcação."
852
 
853
  #: integrations/custom/admin-before.php:2
854
  msgid ""
858
 
859
  #: integrations/woocommerce/class-woocommerce.php:102
860
  msgid "Order #%d"
861
+ msgstr "Pedido #%d"
862
 
863
  #. Plugin Name of the plugin/theme
864
  msgid "MailChimp for WordPress"
878
 
879
  #. Author of the plugin/theme
880
  msgid "ibericode"
881
+ msgstr "ibericode"
882
 
883
  #. Author URI of the plugin/theme
884
  msgid "https://ibericode.com/"
885
+ msgstr "https://ibericode.com/"
mailchimp-for-wp.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: MailChimp for WordPress
4
  Plugin URI: https://mc4wp.com/#utm_source=wp-plugin&utm_medium=mailchimp-for-wp&utm_campaign=plugins-page
5
  Description: MailChimp for WordPress by ibericode. Adds various highly effective sign-up methods to your site.
6
- Version: 3.1.2
7
  Author: ibericode
8
  Author URI: https://ibericode.com/
9
  Text Domain: mailchimp-for-wp
@@ -47,7 +47,7 @@ function __mc4wp_load_plugin() {
47
  }
48
 
49
  // bootstrap the core plugin
50
- define( 'MC4WP_VERSION', '3.1.2' );
51
  define( 'MC4WP_PLUGIN_DIR', dirname( __FILE__ ) . '/' );
52
  define( 'MC4WP_PLUGIN_URL', plugins_url( '/' , __FILE__ ) );
53
  define( 'MC4WP_PLUGIN_FILE', __FILE__ );
3
  Plugin Name: MailChimp for WordPress
4
  Plugin URI: https://mc4wp.com/#utm_source=wp-plugin&utm_medium=mailchimp-for-wp&utm_campaign=plugins-page
5
  Description: MailChimp for WordPress by ibericode. Adds various highly effective sign-up methods to your site.
6
+ Version: 3.1.3
7
  Author: ibericode
8
  Author URI: https://ibericode.com/
9
  Text Domain: mailchimp-for-wp
47
  }
48
 
49
  // bootstrap the core plugin
50
+ define( 'MC4WP_VERSION', '3.1.3' );
51
  define( 'MC4WP_PLUGIN_DIR', dirname( __FILE__ ) . '/' );
52
  define( 'MC4WP_PLUGIN_URL', plugins_url( '/' , __FILE__ ) );
53
  define( 'MC4WP_PLUGIN_FILE', __FILE__ );
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://mc4wp.com/#utm_source=wp-plugin-repo&utm_medium=mailchimp-f
4
  Tags: mailchimp, mc4wp, email, marketing, newsletter, subscribe, widget, mc4wp, contact form 7, woocommerce, buddypress, ibericode, mailchimp forms, mailchimp integrations
5
  Requires at least: 3.7
6
  Tested up to: 4.4
7
- Stable tag: 3.1.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -182,6 +182,17 @@ MailChimp for WordPress is being developed on GitHub. If you want to collaborate
182
  == Changelog ==
183
 
184
 
 
 
 
 
 
 
 
 
 
 
 
185
  #### 3.1.2 - February 15, 2016
186
 
187
  **Fixes**
4
  Tags: mailchimp, mc4wp, email, marketing, newsletter, subscribe, widget, mc4wp, contact form 7, woocommerce, buddypress, ibericode, mailchimp forms, mailchimp integrations
5
  Requires at least: 3.7
6
  Tested up to: 4.4
7
+ Stable tag: 3.1.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
182
  == Changelog ==
183
 
184
 
185
+ #### 3.1.3 - February 17, 2016
186
+
187
+ **Fixes**
188
+
189
+ - Issue with API array responses (for the [MailChimp Activity add-on](https://wordpress.org/plugins/mc4wp-activity/), for example).
190
+
191
+ **Improvements**
192
+
193
+ - Updated Dutch, Portugese, Spanish and Italian translations.
194
+
195
+
196
  #### 3.1.2 - February 15, 2016
197
 
198
  **Fixes**