Plugin "Check it!" button fails silently with nonce error
If the tab is left open, and you come back after a while and want to rescan, it can fail.
It will show the spinner for a second and then just disappear, with no feedback.
In the console there are these errors:
Failed to load resource: the server responded with a status of 403 ()
plugin-check-admin.js?=1741816233:83
Error: Invalid nonce
at handleDataErrors (plugin-check-admin.js?=1741816233:334:10)
But there is not feedback for the user as to what's gone wrong.
Perhaps it should just automatically trigger a page reload, and show a message saying security check failed, please try again?
how can i recreate this issue?? so that i can have a look
Not an easy one to recreate I guess, I just left the tab open. Maybe there is a snippet that can be used to manually invalidate the nonce?
I had been doing dev in the morning, when I returned to it in the afternoon and pressed Check It, nothing happened.
Looking at the console I saw the screenshot above.
I can try to look into this.