mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 09:08:09 +08:00
Fix the coding styles
This commit is contained in:
parent
3f1b998118
commit
1e9d9ec29e
1 changed files with 3 additions and 3 deletions
|
@ -250,12 +250,12 @@ trait ContextTrait {
|
|||
* @return bool
|
||||
*/
|
||||
protected function is_wc_settings_payments_tab(): bool {
|
||||
if ( ! is_admin() || isset( $_GET['section'] ) ) {
|
||||
if ( ! is_admin() || isset( $_GET['section'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification
|
||||
return false;
|
||||
}
|
||||
|
||||
$page = $_GET['page'] ?? '';
|
||||
$tab = $_GET['tab'] ?? '';
|
||||
$page = wc_clean( wp_unslash( $_GET['page'] ?? '' ) ); // phpcs:ignore WordPress.Security.NonceVerification
|
||||
$tab = wc_clean( wp_unslash( $_GET['tab'] ?? '' ) ); // phpcs:ignore WordPress.Security.NonceVerification
|
||||
|
||||
return $page === 'wc-settings' && $tab === 'checkout';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue