Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Whip_MessageDismisser::verifyNonce(): bug fix
The method is documented as returning a boolean value, but the `wp_verify_nonce()` function returns `int|false`. Fixed now. Ref: https://developer.wordpress.org/reference/functions/wp_verify_nonce/ Note: as the test suite does not test with a real WP setup, this bug currently cannot easily be proven, nor safeguarded via a test. The `WHIP_WPMessageDismissListener::listen()` method uses this function and does have a test, but mocks away the `Whip_MessageDismisser::verifyNonce()` method. The mock correctly returns `true|false`, but that isn't what the reality was doing.
- Loading branch information