Mollie Payments for WooCommerce - Version 5.1.2

Version Description

  • 20-03-2019 =

  • Fix - Convert de_DE_formal to de_DE

  • Fix - Check that cached methods are stored as array, otherwise retrieve from API, fixes 'Cannot use object' error

Download this release

Release Info

Developer davdebcom
Plugin Icon wp plugin Mollie Payments for WooCommerce
Version 5.1.2
Comparing to
See all releases

Code changes from version 5.1.1 to 5.1.2

includes/mollie/wc/helper/data.php CHANGED
@@ -308,6 +308,13 @@ class Mollie_WC_Helper_Data
308
  return self::$recurring_api_methods;
309
  }
310
 
 
 
 
 
 
 
 
311
  protected function getApiPaymentMethods( $test_mode = false, $use_cache = true, $filters = array () ) {
312
 
313
  $methods = array ();
@@ -320,7 +327,7 @@ class Mollie_WC_Helper_Data
320
  if ( $use_cache ) {
321
  $cached_methods = unserialize( get_transient( $transient_id ) );
322
 
323
- if ( $cached_methods ) {
324
  $methods = $cached_methods;
325
  }
326
  }
308
  return self::$recurring_api_methods;
309
  }
310
 
311
+ /**
312
+ * @param bool $test_mode
313
+ * @param bool $use_cache
314
+ * @param array $filters
315
+ *
316
+ * @return array|mixed|\Mollie\Api\Resources\MethodCollection|null
317
+ */
318
  protected function getApiPaymentMethods( $test_mode = false, $use_cache = true, $filters = array () ) {
319
 
320
  $methods = array ();
327
  if ( $use_cache ) {
328
  $cached_methods = unserialize( get_transient( $transient_id ) );
329
 
330
+ if ( $cached_methods && is_array($cached_methods) ) {
331
  $methods = $cached_methods;
332
  }
333
  }
includes/mollie/wc/helper/settings.php CHANGED
@@ -78,6 +78,7 @@ class Mollie_WC_Helper_Settings
78
 
79
  // Convert known exceptions
80
  ( $locale == 'nl_NL_formal' ? $locale = 'nl_NL': '');
 
81
  ( $locale == 'no_NO' ? $locale = 'nb_NO': '');
82
 
83
  // TODO: Once in a while, check API changelog to make sure there haven't been changes to this list.
78
 
79
  // Convert known exceptions
80
  ( $locale == 'nl_NL_formal' ? $locale = 'nl_NL': '');
81
+ ( $locale == 'de_DE_formal' ? $locale = 'de_DE': '');
82
  ( $locale == 'no_NO' ? $locale = 'nb_NO': '');
83
 
84
  // TODO: Once in a while, check API changelog to make sure there haven't been changes to this list.
includes/mollie/wc/plugin.php CHANGED
@@ -7,7 +7,7 @@ class Mollie_WC_Plugin
7
  {
8
  const PLUGIN_ID = 'mollie-payments-for-woocommerce';
9
  const PLUGIN_TITLE = 'Mollie Payments for WooCommerce';
10
- const PLUGIN_VERSION = '5.1.1';
11
 
12
  const DB_VERSION = '1.0';
13
  const DB_VERSION_PARAM_NAME = 'mollie-db-version';
7
  {
8
  const PLUGIN_ID = 'mollie-payments-for-woocommerce';
9
  const PLUGIN_TITLE = 'Mollie Payments for WooCommerce';
10
+ const PLUGIN_VERSION = '5.1.2';
11
 
12
  const DB_VERSION = '1.0';
13
  const DB_VERSION_PARAM_NAME = 'mollie-db-version';
mollie-payments-for-woocommerce.php CHANGED
@@ -3,16 +3,16 @@
3
  * Plugin Name: Mollie Payments for WooCommerce
4
  * Plugin URI: https://www.mollie.com
5
  * Description: Accept payments in WooCommerce with the official Mollie plugin
6
- * Version: 5.1.1
7
  * Author: Mollie
8
  * Author URI: https://www.mollie.com
9
  * Requires at least: 3.8
10
- * Tested up to: 5.0
11
  * Text Domain: mollie-payments-for-woocommerce
12
  * Domain Path: /i18n/languages/
13
  * License: GPLv2 or later
14
  * WC requires at least: 2.2.0
15
- * WC tested up to: 3.5
16
  */
17
 
18
  // Exit if accessed directly.
3
  * Plugin Name: Mollie Payments for WooCommerce
4
  * Plugin URI: https://www.mollie.com
5
  * Description: Accept payments in WooCommerce with the official Mollie plugin
6
+ * Version: 5.1.2
7
  * Author: Mollie
8
  * Author URI: https://www.mollie.com
9
  * Requires at least: 3.8
10
+ * Tested up to: 5.1
11
  * Text Domain: mollie-payments-for-woocommerce
12
  * Domain Path: /i18n/languages/
13
  * License: GPLv2 or later
14
  * WC requires at least: 2.2.0
15
+ * WC tested up to: 3.6
16
  */
17
 
18
  // Exit if accessed directly.
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: daanvm, davdebcom, l.vangunst, ndijkstra, robin-mollie
3
  Tags: mollie, payments, payment gateway, woocommerce, credit card
4
  Requires at least: 3.8
5
  Tested up to: 5.1
6
- Stable tag: 5.1.1
7
  Requires PHP: 5.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -181,6 +181,11 @@ Automatic updates should work like a charm; as always though, ensure you backup
181
 
182
  == Changelog ==
183
 
 
 
 
 
 
184
  = 5.1.1 - 19-03-2019 =
185
 
186
  * New - Added two new actions when processing items for Orders API, mollie-payments-for-woocommerce_orderlines_process_items_before_getting_product_id and mollie-payments-for-woocommerce_orderlines_process_items_after_processing_item
3
  Tags: mollie, payments, payment gateway, woocommerce, credit card
4
  Requires at least: 3.8
5
  Tested up to: 5.1
6
+ Stable tag: 5.1.2
7
  Requires PHP: 5.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
181
 
182
  == Changelog ==
183
 
184
+ = 5.1.2 - 20-03-2019 =
185
+
186
+ * Fix - Convert de_DE_formal to de_DE
187
+ * Fix - Check that cached methods are stored as array, otherwise retrieve from API, fixes 'Cannot use object' error
188
+
189
  = 5.1.1 - 19-03-2019 =
190
 
191
  * New - Added two new actions when processing items for Orders API, mollie-payments-for-woocommerce_orderlines_process_items_before_getting_product_id and mollie-payments-for-woocommerce_orderlines_process_items_after_processing_item