WooCommerce MercadoPago - Version 4.0.4

Version Description

Download this release

Release Info

Developer mercadopago
Plugin Icon 128x128 WooCommerce MercadoPago
Version 4.0.4
Comparing to
See all releases

Code changes from version 4.0.3 to 4.0.4

includes/module/WC_WooMercadoPago_Module.php CHANGED
@@ -8,7 +8,7 @@ if (!defined('ABSPATH')) {
8
  */
9
  class WC_WooMercadoPago_Module extends WC_WooMercadoPago_Configs
10
  {
11
- const VERSION = '4.0.3';
12
  const MIN_PHP = 5.6;
13
 
14
  public static $categories = array();
8
  */
9
  class WC_WooMercadoPago_Module extends WC_WooMercadoPago_Configs
10
  {
11
+ const VERSION = '4.0.4';
12
  const MIN_PHP = 5.6;
13
 
14
  public static $categories = array();
includes/module/sdk/lib/MP.php CHANGED
@@ -12,7 +12,7 @@ $GLOBALS['LIB_LOCATION'] = dirname(__FILE__);
12
  class MP
13
  {
14
 
15
- private $version = '4.0.0';
16
  private $client_id;
17
  private $client_secret;
18
  private $ll_access_token;
12
  class MP
13
  {
14
 
15
+ private $version = '4.0.4';
16
  private $client_id;
17
  private $client_secret;
18
  private $ll_access_token;
includes/payments/WC_WooMercadoPago_BasicGateway.php CHANGED
@@ -411,8 +411,9 @@ class WC_WooMercadoPago_BasicGateway extends WC_WooMercadoPago_PaymentAbstract
411
  }
412
 
413
  //sort array by type asc
414
- usort($all_payments, function ($a, $b) {
415
- return $a['type'] <=> $b['type'];
 
416
  });
417
 
418
  $count_payment = 0;
411
  }
412
 
413
  //sort array by type asc
414
+ usort($all_payments, function($a, $b) {
415
+ if($a['type'] == $b['type']) return 0;
416
+ return $b['type'] < $a['type'] ? 1 : -1;
417
  });
418
 
419
  $count_payment = 0;
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === WooCommerce Mercado Pago ===
2
  Contributors: mercadopago, mercadolivre, claudiosanches, marcelohama
3
  Tags: ecommerce, mercadopago, woocommerce
4
- Requires at least: 4.9.10
5
  Tested up to: 5.2.2
6
  Requires PHP: 5.6
7
- Stable tag: 4.0.3
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -113,6 +113,10 @@ Check out our <a href="https://www.mercadopago.com.br/developers/pt/plugins_sdks
113
 
114
  == Changelog ==
115
 
 
 
 
 
116
  = v4.0.3 (03/09/2019) =
117
  * Bug fixes
118
  - Fixed basic checkout layout when theme uses bootstrap
1
  === WooCommerce Mercado Pago ===
2
  Contributors: mercadopago, mercadolivre, claudiosanches, marcelohama
3
  Tags: ecommerce, mercadopago, woocommerce
4
+ Requires at least: 4.9.7
5
  Tested up to: 5.2.2
6
  Requires PHP: 5.6
7
+ Stable tag: 4.0.4
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
113
 
114
  == Changelog ==
115
 
116
+ = v4.0.4 (03/09/2019) =
117
+ * Bug fixes
118
+ - Conflict between php5.6 and php7 solved
119
+
120
  = v4.0.3 (03/09/2019) =
121
  * Bug fixes
122
  - Fixed basic checkout layout when theme uses bootstrap
woocommerce-mercadopago.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: WooCommerce Mercado Pago
4
  * Plugin URI: https://github.com/mercadopago/cart-woocommerce
5
  * Description: Configura las opciones de pago a tu medida y acepta pagos con tarjetas, dinero en efectivo y dinero en cuenta de Mercado Pago.
6
- * Version: 4.0.3
7
  * Author: Mercado Pago
8
  * Author URI: https://www.mercadopago.com.br/developers/
9
  * Text Domain: woocommerce-mercadopago
3
  * Plugin Name: WooCommerce Mercado Pago
4
  * Plugin URI: https://github.com/mercadopago/cart-woocommerce
5
  * Description: Configura las opciones de pago a tu medida y acepta pagos con tarjetas, dinero en efectivo y dinero en cuenta de Mercado Pago.
6
+ * Version: 4.0.4
7
  * Author: Mercado Pago
8
  * Author URI: https://www.mercadopago.com.br/developers/
9
  * Text Domain: woocommerce-mercadopago