mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
remove outdated dcc_enable overwrite
This commit is contained in:
parent
116837eadb
commit
d75c29c420
1 changed files with 0 additions and 5 deletions
|
@ -124,11 +124,6 @@ class SettingsListener {
|
|||
&& 1 === absint( $_POST['woocommerce_ppcp-gateway_enabled'] );
|
||||
$this->maybe_register_webhooks( $settings );
|
||||
}
|
||||
if ( isset( $_GET[ SectionsRenderer::KEY ] ) && CreditCardGateway::ID === $_GET[ SectionsRenderer::KEY ] ) {
|
||||
$dcc_enabled_post_key = 'woocommerce_ppcp-credit-card-gateway_enabled';
|
||||
$settings['dcc_enabled'] = isset( $_POST[ $dcc_enabled_post_key ] )
|
||||
&& 1 === absint( $_POST[ $dcc_enabled_post_key ] );
|
||||
}
|
||||
|
||||
foreach ( $settings as $id => $value ) {
|
||||
$this->settings->set( $id, $value );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue