Skip to content

Commit 575f90d

Browse files
committed
Fix typo with the nonce
1 parent 9a72656 commit 575f90d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/types/class-base.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function handle_authorisation() {
7070

7171
// Check nonce.
7272
$nonce_action = $this->get_nonce_action( $client );
73-
if ( ! wp_verify_nonce( wp_unslash( $_POST['_wpnonce'] ), $none_action ) ) {
73+
if ( ! wp_verify_nonce( wp_unslash( $_POST['_wpnonce'] ), $nonce_action ) ) {
7474
return new WP_Error(
7575
'oauth2.types.authorization_code.handle_authorisation.invalid_nonce',
7676
__( 'Invalid nonce.', 'oauth2' )

0 commit comments

Comments
 (0)