Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/release/7.9.1' into trunk
Browse files Browse the repository at this point in the history
  • Loading branch information
diegocurbelo committed Jan 16, 2024
2 parents 0755c43 + 0750f7c commit ca36fae
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 9 deletions.
3 changes: 3 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
*** Changelog ***

= 7.9.1 - 2024-01-16 =
* Fix - PHP fatal error when updating a user with saved tokens from the WP Dashboard.

= 7.9.0 - 2024-01-11 =
* Tweak - Updated supported/tested versions of WordPress and WooCommerce.

Expand Down
7 changes: 6 additions & 1 deletion includes/class-wc-gateway-stripe.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,12 @@ public function is_available() {
* @param string $load_address The address to load.
*/
public function show_update_card_notice( $user_id, $load_address ) {
if ( ! $this->saved_cards || ! WC_Stripe_Payment_Tokens::customer_has_saved_methods( $user_id ) || 'billing' !== $load_address ) {
if (
is_admin() ||
! $this->saved_cards ||
! WC_Stripe_Payment_Tokens::customer_has_saved_methods( $user_id ) ||
'billing' !== $load_address
) {
return;
}

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "woocommerce-gateway-stripe",
"title": "WooCommerce Gateway Stripe",
"version": "7.9.0",
"version": "7.9.1",
"license": "GPL-3.0",
"homepage": "http://wordpress.org/plugins/woocommerce-gateway-stripe/",
"repository": {
Expand Down
6 changes: 3 additions & 3 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: credit card, stripe, apple pay, payment request, google pay, sepa, bancont
Requires at least: 6.1
Tested up to: 6.4.2
Requires PHP: 7.4
Stable tag: 7.9.0
Stable tag: 7.9.1
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Attributions: thorsten-stripe
Expand Down Expand Up @@ -128,7 +128,7 @@ If you get stuck, you can ask for help in the Plugin Forum.

== Changelog ==

= 7.9.0 - 2024-01-11 =
* Tweak - Updated supported/tested versions of WordPress and WooCommerce.
= 7.9.1 - 2024-01-16 =
* Fix - PHP fatal error when updating a user with saved tokens from the WP Dashboard.

[See changelog for all versions](https://raw.githubusercontent.com/woocommerce/woocommerce-gateway-stripe/trunk/changelog.txt).
6 changes: 3 additions & 3 deletions woocommerce-gateway-stripe.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
* Description: Take credit card payments on your store using Stripe.
* Author: WooCommerce
* Author URI: https://woocommerce.com/
* Version: 7.9.0
* Version: 7.9.1
* Requires at least: 6.1
* Tested up to: 6.4.2
* WC requires at least: 8.2
* WC tested up to: 8.5.0
* WC tested up to: 8.5.1
* Text Domain: woocommerce-gateway-stripe
* Domain Path: /languages
*/
Expand All @@ -21,7 +21,7 @@
/**
* Required minimums and constants
*/
define( 'WC_STRIPE_VERSION', '7.9.0' ); // WRCS: DEFINED_VERSION.
define( 'WC_STRIPE_VERSION', '7.9.1' ); // WRCS: DEFINED_VERSION.
define( 'WC_STRIPE_MIN_PHP_VER', '7.3.0' );
define( 'WC_STRIPE_MIN_WC_VER', '7.4' );
define( 'WC_STRIPE_FUTURE_MIN_WC_VER', '7.5' );
Expand Down

0 comments on commit ca36fae

Please sign in to comment.