mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Fix token check on listener
This commit is contained in:
parent
68cf4ecda3
commit
a77078a372
2 changed files with 6 additions and 6 deletions
|
@ -54,7 +54,7 @@ class CustomerApprovalListener {
|
|||
*/
|
||||
public function listen(): void {
|
||||
$token = wc_clean( wp_unslash( $_GET['approval_token_id'] ?? '' ) );
|
||||
if ( ! is_string( $token ) ) {
|
||||
if ( ! $token ) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue