mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-07 19:54:15 +08:00
Fix lint.
This commit is contained in:
parent
81f606912f
commit
e01cef5d16
1 changed files with 2 additions and 2 deletions
|
@ -109,7 +109,7 @@ class RefreshFeatureStatusEndpoint {
|
|||
* @return bool
|
||||
*/
|
||||
private function verify_nonce(): bool {
|
||||
$json = json_decode( file_get_contents( 'php://input' ), true );
|
||||
return wp_verify_nonce( $json['nonce'] ?? null, self::nonce() ) !== false;
|
||||
$json = json_decode( file_get_contents( 'php://input' ) ?: '', true );
|
||||
return wp_verify_nonce( $json['nonce'] ?? '', self::nonce() ) !== false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue