Skip to content

Commit a22913f

Browse files
authored
Remove explicit version check for the legacy checkout deprecation notice (#4070)
1 parent 1602dc2 commit a22913f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

includes/admin/class-wc-stripe-admin-notices.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function admin_notices() {
104104
public static function display_legacy_deprecation_notice( $plugin_file ) {
105105
global $wp_list_table;
106106

107-
if ( version_compare( WC_STRIPE_VERSION, '9.3.0', '!=' ) || WC_Stripe_Feature_Flags::is_upe_checkout_enabled() ) {
107+
if ( WC_Stripe_Feature_Flags::is_upe_checkout_enabled() ) {
108108
return;
109109
}
110110

@@ -372,7 +372,7 @@ public function stripe_check_environment() {
372372

373373
if ( empty( $legacy_deprecation_notice ) ) {
374374
// Show legacy deprecation notice in version 9.3.0 if legacy checkout experience is enabled.
375-
if ( ! WC_Stripe_Feature_Flags::is_upe_checkout_enabled() && version_compare( WC_STRIPE_VERSION, '9.3.0', '==' ) ) {
375+
if ( ! WC_Stripe_Feature_Flags::is_upe_checkout_enabled() ) {
376376
$setting_link = $this->get_setting_link();
377377
$message = sprintf(
378378
/* translators: 1) HTML anchor open tag 2) HTML anchor closing tag */

0 commit comments

Comments
 (0)