Opened 11 months ago
Add a action in check_admin_referer() in the event the nonce auth fails
|Reported by:||dd32||Owned by:|
Currently plugins don't have a way to perform custom handling in the event that a nonce fails in check_admin_referer() - Whilst in most cases this will never be needed, I'd like the ability for plugins to be able to use check_admin_referer() directly AND have the option of redirecting failed nonces to their own page.
We currently have an action which is fired when a nonce passes:
do_action('check_admin_referer', $action, $result);