From 1df151fd499fb6f00aa45b9e006ac31dbbc1ad01 Mon Sep 17 00:00:00 2001 From: Pedro Silva Date: Thu, 13 Jul 2023 16:10:59 +0100 Subject: [PATCH] Remove duplicate is_pay_later_filter_enabled_for_location condition check --- modules/ppcp-button/src/Assets/SmartButton.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/modules/ppcp-button/src/Assets/SmartButton.php b/modules/ppcp-button/src/Assets/SmartButton.php index 517f43774..619712749 100644 --- a/modules/ppcp-button/src/Assets/SmartButton.php +++ b/modules/ppcp-button/src/Assets/SmartButton.php @@ -386,10 +386,6 @@ class SmartButton implements SmartButtonInterface { return false; } - if ( ! $this->is_pay_later_filter_enabled_for_location( $this->context() ) ) { - return false; - } - $selected_locations = $this->settings->has( 'pay_later_messaging_locations' ) ? $this->settings->get( 'pay_later_messaging_locations' ) : array(); $not_enabled_on_cart = ! in_array( 'cart', $selected_locations, true );