I am refactoring my plugin that resets the WordPress database tables back to their defaults and came across an issue.
The form submission itself works fine. However, after the first submit, and if you do not refresh the page and submit the form again, the nonce seems to fail. Perhaps there is someone that fully understands how nonces work as I am not sure what is causing this.
I have the necessary check for
check_admin_referer on the administration side.
As I can't post specific parts of the code, here is the link to the refactored (WIP) plugin: