Fix the coding styles

This commit is contained in:
Narek Zakarian 2024-08-28 17:07:50 +04:00
parent 3f1b998118
commit 1e9d9ec29e
No known key found for this signature in database
GPG key ID: 07AFD7E7A9C164A7

View file

@ -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';
}