mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
Fix linting issues
This commit is contained in:
parent
e84bc21044
commit
3e8d6590f6
2 changed files with 8 additions and 3 deletions
|
@ -567,7 +567,7 @@ return array(
|
|||
$container->get( 'settings.data.todos' )
|
||||
);
|
||||
},
|
||||
'settings.service.gateway-redirect' => static function (): GatewayRedirectService {
|
||||
'settings.service.gateway-redirect' => static function (): GatewayRedirectService {
|
||||
return new GatewayRedirectService();
|
||||
},
|
||||
);
|
||||
|
|
|
@ -85,9 +85,14 @@ class GatewayRedirectService {
|
|||
|
||||
// Get current URL parameters.
|
||||
// phpcs:disable WordPress.Security.NonceVerification.Recommended
|
||||
$page = isset( $_GET['page'] ) ? $this->sanitize_get_param( $_GET['page'] ) : '';
|
||||
$tab = isset( $_GET['tab'] ) ? $this->sanitize_get_param( $_GET['tab'] ) : '';
|
||||
// phpcs:disable WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
|
||||
// phpcs:disable WordPress.Security.ValidatedSanitizedInput.MissingUnslash
|
||||
// The sanitize_get_param method handles unslashing and sanitization internally.
|
||||
$page = isset( $_GET['page'] ) ? $this->sanitize_get_param( $_GET['page'] ) : '';
|
||||
$tab = isset( $_GET['tab'] ) ? $this->sanitize_get_param( $_GET['tab'] ) : '';
|
||||
$section = isset( $_GET['section'] ) ? $this->sanitize_get_param( $_GET['section'] ) : '';
|
||||
// phpcs:enable WordPress.Security.ValidatedSanitizedInput.MissingUnslash
|
||||
// phpcs:enable WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
|
||||
// phpcs:enable WordPress.Security.NonceVerification.Recommended
|
||||
|
||||
// Check if we're on a WooCommerce settings page and checkout tab.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue