WooCommerce Correios - Version 3.2.1

Version Description

  • 2017/03/08 =

  • Corrigida compatiblidade com PHP 5.2 e 5.3 na nova ferramenta de cadastro de cdigo de rastreamento.

Download this release

Release Info

Developer claudiosanches
Plugin Icon 128x128 WooCommerce Correios
Version 3.2.1
Comparing to
See all releases

Code changes from version 3.2.0 to 3.2.1

includes/admin/class-wc-correios-admin-orders.php CHANGED
@@ -88,10 +88,10 @@ class WC_Correios_Admin_Orders {
88
  public function ajax_add_tracking_code() {
89
  check_ajax_referer( 'woocommerce-correios-add-tracking-code', 'security' );
90
 
91
- $args = filter_input_array( INPUT_POST, [
92
  'order_id' => FILTER_SANITIZE_NUMBER_INT,
93
  'tracking_code' => FILTER_SANITIZE_STRING,
94
- ] );
95
 
96
  $order = wc_get_order( $args['order_id'] );
97
 
@@ -108,10 +108,10 @@ class WC_Correios_Admin_Orders {
108
  public function ajax_remove_tracking_code() {
109
  check_ajax_referer( 'woocommerce-correios-remove-tracking-code', 'security' );
110
 
111
- $args = filter_input_array( INPUT_POST, [
112
  'order_id' => FILTER_SANITIZE_NUMBER_INT,
113
  'tracking_code' => FILTER_SANITIZE_STRING,
114
- ] );
115
 
116
  wc_correios_update_tracking_code( $args['order_id'], $args['tracking_code'], true );
117
 
88
  public function ajax_add_tracking_code() {
89
  check_ajax_referer( 'woocommerce-correios-add-tracking-code', 'security' );
90
 
91
+ $args = filter_input_array( INPUT_POST, array(
92
  'order_id' => FILTER_SANITIZE_NUMBER_INT,
93
  'tracking_code' => FILTER_SANITIZE_STRING,
94
+ ) );
95
 
96
  $order = wc_get_order( $args['order_id'] );
97
 
108
  public function ajax_remove_tracking_code() {
109
  check_ajax_referer( 'woocommerce-correios-remove-tracking-code', 'security' );
110
 
111
+ $args = filter_input_array( INPUT_POST, array(
112
  'order_id' => FILTER_SANITIZE_NUMBER_INT,
113
  'tracking_code' => FILTER_SANITIZE_STRING,
114
+ ) );
115
 
116
  wc_correios_update_tracking_code( $args['order_id'], $args['tracking_code'], true );
117
 
includes/admin/views/html-meta-box-tracking-code.php CHANGED
@@ -13,7 +13,7 @@ if ( ! defined( 'ABSPATH' ) ) {
13
  <div class="correios-tracking-code">
14
  <?php if ( ! empty( $tracking_codes ) ) : ?>
15
  <div class="correios-tracking-code__list">
16
- <strong><?php echo esc_html( _n( 'Tracking code', 'Tracking codes:', count( $tracking_codes ), 'woocommerce-correios' ) ); ?></strong>
17
  <ul>
18
  <?php foreach ( $tracking_codes as $tracking_code ) : ?>
19
  <li><a href="<?php echo esc_url( 'http://websro.correios.com.br/sro_bin/txect01$.QueryList?P_LINGUA=001&P_TIPO=001&P_COD_UNI=' . $tracking_code ) ?>" title="<?php esc_attr_e( 'View tracking code', 'woocommerce-correios' ); ?>" aria-label="<?php esc_attr_e( 'Tracking code', 'woocommerce-correios' ) ?>" target="_blank"><?php echo esc_html( $tracking_code ); ?></a> <a href="#" class="dashicons-dismiss" title="<?php esc_attr_e( 'Remove tracking code', 'woocommerce-correios' ) ?>" aria-label="<?php esc_attr_e( 'Remove tracking code', 'woocommerce-correios' ) ?>" data-code="<?php echo esc_attr( $tracking_code ); ?>"></a></li>
13
  <div class="correios-tracking-code">
14
  <?php if ( ! empty( $tracking_codes ) ) : ?>
15
  <div class="correios-tracking-code__list">
16
+ <strong><?php echo esc_html( _n( 'Tracking code:', 'Tracking codes:', count( $tracking_codes ), 'woocommerce-correios' ) ); ?></strong>
17
  <ul>
18
  <?php foreach ( $tracking_codes as $tracking_code ) : ?>
19
  <li><a href="<?php echo esc_url( 'http://websro.correios.com.br/sro_bin/txect01$.QueryList?P_LINGUA=001&P_TIPO=001&P_COD_UNI=' . $tracking_code ) ?>" title="<?php esc_attr_e( 'View tracking code', 'woocommerce-correios' ); ?>" aria-label="<?php esc_attr_e( 'Tracking code', 'woocommerce-correios' ) ?>" target="_blank"><?php echo esc_html( $tracking_code ); ?></a> <a href="#" class="dashicons-dismiss" title="<?php esc_attr_e( 'Remove tracking code', 'woocommerce-correios' ) ?>" aria-label="<?php esc_attr_e( 'Remove tracking code', 'woocommerce-correios' ) ?>" data-code="<?php echo esc_attr( $tracking_code ); ?>"></a></li>
languages/woocommerce-correios.pot CHANGED
@@ -2,10 +2,10 @@
2
  # This file is distributed under the GPLv2 or later.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: WooCommerce Correios 3.2.0\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/woocommerce-correios\n"
8
- "POT-Creation-Date: 2017-03-08 02:20:38+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
@@ -436,9 +436,9 @@ msgid "More about %s."
436
  msgstr ""
437
 
438
  #: includes/admin/views/html-meta-box-tracking-code.php:16
439
- #: includes/admin/views/html-meta-box-tracking-code.php:19
440
- #: includes/admin/views/html-meta-box-tracking-code.php:41
441
- msgid "Tracking code"
442
  msgid_plural "Tracking codes:"
443
  msgstr[0] ""
444
  msgstr[1] ""
@@ -448,6 +448,11 @@ msgstr[1] ""
448
  msgid "View tracking code"
449
  msgstr ""
450
 
 
 
 
 
 
451
  #: includes/admin/views/html-meta-box-tracking-code.php:19
452
  #: includes/admin/views/html-meta-box-tracking-code.php:41
453
  msgid "Remove tracking code"
@@ -465,11 +470,6 @@ msgstr ""
465
  msgid "Tracking codes:"
466
  msgstr ""
467
 
468
- #: includes/admin/views/html-meta-box-tracking-code.php:37
469
- #: templates/myaccount/tracking-codes.php:15
470
- msgid "Tracking code:"
471
- msgstr ""
472
-
473
  #: includes/class-wc-correios-autofill-addresses.php:257
474
  msgid "Missing postcode paramater."
475
  msgstr ""
2
  # This file is distributed under the GPLv2 or later.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: WooCommerce Correios 3.2.1\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/woocommerce-correios\n"
8
+ "POT-Creation-Date: 2017-03-08 22:09:45+00:00\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=utf-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
436
  msgstr ""
437
 
438
  #: includes/admin/views/html-meta-box-tracking-code.php:16
439
+ #: includes/admin/views/html-meta-box-tracking-code.php:37
440
+ #: templates/myaccount/tracking-codes.php:15
441
+ msgid "Tracking code:"
442
  msgid_plural "Tracking codes:"
443
  msgstr[0] ""
444
  msgstr[1] ""
448
  msgid "View tracking code"
449
  msgstr ""
450
 
451
+ #: includes/admin/views/html-meta-box-tracking-code.php:19
452
+ #: includes/admin/views/html-meta-box-tracking-code.php:41
453
+ msgid "Tracking code"
454
+ msgstr ""
455
+
456
  #: includes/admin/views/html-meta-box-tracking-code.php:19
457
  #: includes/admin/views/html-meta-box-tracking-code.php:41
458
  msgid "Remove tracking code"
470
  msgid "Tracking codes:"
471
  msgstr ""
472
 
 
 
 
 
 
473
  #: includes/class-wc-correios-autofill-addresses.php:257
474
  msgid "Missing postcode paramater."
475
  msgstr ""
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://claudiosmweb.com/doacoes/
4
  Tags: shipping, delivery, woocommerce, correios
5
  Requires at least: 4.0
6
  Tested up to: 4.7
7
- Stable tag: 3.2.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -203,6 +203,10 @@ Em caso de dúvidas, basta abrir um tópico no [fórum de suporte do plugin](htt
203
 
204
  == Changelog ==
205
 
 
 
 
 
206
  = 3.2.0 - 2017/03/07 =
207
 
208
  - Adicionado suporte para o WooCommerce 2.7.
@@ -292,10 +296,11 @@ Em caso de dúvidas, basta abrir um tópico no [fórum de suporte do plugin](htt
292
 
293
  == Upgrade Notice ==
294
 
295
- = 3.2.0 =
296
 
297
  - Adicionado suporte para o WooCommerce 2.7.
298
  - Atualizados os valores do Impresso Normal e Impresso Urgente (Obrigado Alex Koti).
299
  - Adicionado suporte para vários códigos de rastreamento para cara pedido.
300
  - Adicionado suporte a classes de entrega para todos os métodos de entrega.
301
  - Corrigida compatibilidade com PHP 7.1.
 
4
  Tags: shipping, delivery, woocommerce, correios
5
  Requires at least: 4.0
6
  Tested up to: 4.7
7
+ Stable tag: 3.2.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
203
 
204
  == Changelog ==
205
 
206
+ = 3.2.1 - 2017/03/08 =
207
+
208
+ - Corrigida compatiblidade com PHP 5.2 e 5.3 na nova ferramenta de cadastro de código de rastreamento.
209
+
210
  = 3.2.0 - 2017/03/07 =
211
 
212
  - Adicionado suporte para o WooCommerce 2.7.
296
 
297
  == Upgrade Notice ==
298
 
299
+ = 3.2.1 =
300
 
301
  - Adicionado suporte para o WooCommerce 2.7.
302
  - Atualizados os valores do Impresso Normal e Impresso Urgente (Obrigado Alex Koti).
303
  - Adicionado suporte para vários códigos de rastreamento para cara pedido.
304
  - Adicionado suporte a classes de entrega para todos os métodos de entrega.
305
  - Corrigida compatibilidade com PHP 7.1.
306
+ - Corrigida compatiblidade com PHP 5.2 e 5.3 na nova ferramenta de cadastro de código de rastreamento.
woocommerce-correios.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Adds Correios shipping methods to your WooCommerce store.
6
  * Author: Claudio Sanches
7
  * Author URI: https://claudiosmweb.com
8
- * Version: 3.2.0
9
  * License: GPLv2 or later
10
  * Text Domain: woocommerce-correios
11
  * Domain Path: /languages
@@ -43,7 +43,7 @@ if ( ! class_exists( 'WC_Correios' ) ) :
43
  *
44
  * @var string
45
  */
46
- const VERSION = '3.2.0';
47
 
48
  /**
49
  * Instance of this class.
5
  * Description: Adds Correios shipping methods to your WooCommerce store.
6
  * Author: Claudio Sanches
7
  * Author URI: https://claudiosmweb.com
8
+ * Version: 3.2.1
9
  * License: GPLv2 or later
10
  * Text Domain: woocommerce-correios
11
  * Domain Path: /languages
43
  *
44
  * @var string
45
  */
46
+ const VERSION = '3.2.1';
47
 
48
  /**
49
  * Instance of this class.