mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
Merge pull request #3490 from woocommerce/PCP-4972-legacy-ui-mexico-notice-on-frontend-when-wp-debugging-is-enabled
Legacy UI - Mexico - Notice on frontend when wp debugging is enabled (4972)
This commit is contained in:
commit
a445166980
1 changed files with 3 additions and 1 deletions
|
@ -332,7 +332,9 @@ class CardPaymentsConfiguration {
|
|||
public function is_bcdc_enabled() : bool {
|
||||
if ( 'MX' === $this->store_country ) {
|
||||
$bcdc_setting = get_option( 'woocommerce_ppcp-card-button-gateway_settings' );
|
||||
return 'yes' === $bcdc_setting['enabled'];
|
||||
$enabled = $bcdc_setting['enabled'] ?? '';
|
||||
|
||||
return 'yes' === $enabled;
|
||||
}
|
||||
|
||||
return $this->is_enabled() && ! $this->use_acdc();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue