Skip to content

Commit

Permalink
Fix error if other plugins override delete_transient causing non bool…
Browse files Browse the repository at this point in the history
…ean return value.
  • Loading branch information
ndeet committed Mar 8, 2023
1 parent 059a0da commit 2e240b2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions btcpay-greenfield-for-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Author URI: https://btcpayserver.org
* Text Domain: btcpay-greenfield-for-woocommerce
* Domain Path: /languages
* Version: 1.1.4
* Version: 1.1.5
* Requires PHP: 7.4
* Tested up to: 6.1
* Requires at least: 5.2
Expand All @@ -24,7 +24,7 @@

defined( 'ABSPATH' ) || exit();

define( 'BTCPAYSERVER_VERSION', '1.1.4' );
define( 'BTCPAYSERVER_VERSION', '1.1.5' );
define( 'BTCPAYSERVER_VERSION_KEY', 'btcpay_gf_version' );
define( 'BTCPAYSERVER_PLUGIN_FILE_PATH', plugin_dir_path( __FILE__ ) );
define( 'BTCPAYSERVER_PLUGIN_URL', plugin_dir_url(__FILE__ ) );
Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Tags: bitcoin, btcpay, BTCPay Server, btcpayserver, WooCommerce, payment gateway
Requires at least: 5.2
Tested up to: 6.1
Requires PHP: 7.4
Stable tag: 1.1.4
Stable tag: 1.1.5
License: MIT
License URI: https://github.com/btcpayserver/woocommerce-greenfield-plugin/blob/master/license.txt

Expand Down Expand Up @@ -103,6 +103,9 @@ You'll find extensive documentation and answers to many of your questions on [BT
6. Example of the PoS app you can launch.

== Changelog ==
= 1.1.5 :: 2023-03-08 =
* Fix: fix error when plugins override delete_transient function not returning boolean value

= 1.1.4 :: 2023-01-20 =
(redo deployment because of broken build pipe)
* Fix: fixed error on thank you page for separate payment methods.
Expand Down
4 changes: 2 additions & 2 deletions src/Helper/GreenfieldApiHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ public static function supportedPaymentMethods(): array {
/**
* Deletes local cache of supported payment methods.
*/
public static function clearSupportedPaymentMethodsCache(): bool {
return delete_transient( self::PM_CACHE_KEY );
public static function clearSupportedPaymentMethodsCache(): void {
delete_transient( self::PM_CACHE_KEY );
}

/**
Expand Down

0 comments on commit 2e240b2

Please sign in to comment.