mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Fix conditional for displaying vaulting message
This commit is contained in:
parent
34b624905d
commit
8d5698614d
1 changed files with 5 additions and 1 deletions
|
@ -186,7 +186,11 @@ class SettingsRenderer {
|
|||
//phpcs:disable WordPress.Security.NonceVerification.Recommended
|
||||
//phpcs:disable WordPress.Security.NonceVerification.Missing
|
||||
if ( isset( $current_screen->id ) && 'woocommerce_page_wc-settings' === $current_screen->id
|
||||
&& isset( $_GET['ppcp-tab'] ) && 'ppcp-gateway' === $_GET['ppcp-tab'] ) {
|
||||
&& isset( $_GET['section'] ) && 'ppcp-gateway' === $_GET['section'] ) {
|
||||
|
||||
if ( isset( $_GET['ppcp-tab'] ) && $_GET['ppcp-tab'] !== 'ppcp-gateway' ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue