fix toggle for which options to update and listen to

This commit is contained in:
David Remer 2020-09-02 13:02:00 +03:00
parent 8aef527108
commit 2eea01effe

View file

@ -189,13 +189,13 @@ class SettingsListener {
}
if (
'dcc' === $config['gateway']
&& sanitize_text_field( wp_unslash( $_GET['section'] ) ) !== 'ppcp-credit-card-gateway'
&& sanitize_text_field( wp_unslash( $_GET[SectionsRenderer::KEY] ) ) !== CreditCardGateway::ID
) {
continue;
}
if (
'paypal' === $config['gateway']
&& sanitize_text_field( wp_unslash( $_GET['section'] ) ) !== 'ppcp-gateway'
&& sanitize_text_field( wp_unslash( $_GET[SectionsRenderer::KEY] ) ) !== PayPalGateway::ID
) {
continue;
}