mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Remove duplicate is_pay_later_filter_enabled_for_location condition check
This commit is contained in:
parent
d71e09bd09
commit
1df151fd49
1 changed files with 0 additions and 4 deletions
|
@ -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 );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue