Skip to content

Commit

Permalink
Merge pull request #144 from Yoast/JRF/whip_messagedismisser-fix-type…
Browse files Browse the repository at this point in the history
…-return-value

Whip_MessageDismisser::verifyNonce(): bug fix
  • Loading branch information
jrfnl authored Sep 26, 2023
2 parents 06b74c8 + df952b2 commit 4d772bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Whip_MessageDismisser.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,6 @@ public function isDismissed() {
* @return bool True when the nonce is valid.
*/
public function verifyNonce( $nonce, $action ) {
return wp_verify_nonce( $nonce, $action );
return (bool) wp_verify_nonce( $nonce, $action );
}
}

0 comments on commit 4d772bf

Please sign in to comment.