Version Description
21-03-2019 =
Fix - Revert: 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 | |
| Version | 5.1.3 |
| Comparing to | |
| See all releases | |
Code changes from version 5.1.2 to 5.1.3
- includes/mollie/wc/helper/data.php +1 -8
- includes/mollie/wc/plugin.php +1 -1
- mollie-payments-for-woocommerce.php +1 -1
- readme.txt +5 -1
includes/mollie/wc/helper/data.php
CHANGED
|
@@ -308,13 +308,6 @@ class Mollie_WC_Helper_Data
|
|
| 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,7 +320,7 @@ class Mollie_WC_Helper_Data
|
|
| 327 |
if ( $use_cache ) {
|
| 328 |
$cached_methods = unserialize( get_transient( $transient_id ) );
|
| 329 |
|
| 330 |
-
if ( $cached_methods
|
| 331 |
$methods = $cached_methods;
|
| 332 |
}
|
| 333 |
}
|
| 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 |
if ( $use_cache ) {
|
| 321 |
$cached_methods = unserialize( get_transient( $transient_id ) );
|
| 322 |
|
| 323 |
+
if ( $cached_methods ) {
|
| 324 |
$methods = $cached_methods;
|
| 325 |
}
|
| 326 |
}
|
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.
|
| 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.3';
|
| 11 |
|
| 12 |
const DB_VERSION = '1.0';
|
| 13 |
const DB_VERSION_PARAM_NAME = 'mollie-db-version';
|
mollie-payments-for-woocommerce.php
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 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.
|
| 7 |
* Author: Mollie
|
| 8 |
* Author URI: https://www.mollie.com
|
| 9 |
* Requires at least: 3.8
|
| 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.3
|
| 7 |
* Author: Mollie
|
| 8 |
* Author URI: https://www.mollie.com
|
| 9 |
* Requires at least: 3.8
|
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.
|
| 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,10 @@ Automatic updates should work like a charm; as always though, ensure you backup
|
|
| 181 |
|
| 182 |
== Changelog ==
|
| 183 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 184 |
= 5.1.2 - 20-03-2019 =
|
| 185 |
|
| 186 |
* Fix - Convert de_DE_formal to de_DE
|
| 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.3
|
| 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.3 - 21-03-2019 =
|
| 185 |
+
|
| 186 |
+
* Fix - Revert: Check that cached methods are stored as array, otherwise retrieve from API, fixes 'Cannot use object' error
|
| 187 |
+
|
| 188 |
= 5.1.2 - 20-03-2019 =
|
| 189 |
|
| 190 |
* Fix - Convert de_DE_formal to de_DE
|
