[wp-trac] [WordPress Trac] #21190: Add a action in check_admin_referer() in the event the nonce auth fails
WordPress Trac
wp-trac at lists.automattic.com
Sun Jul 8 09:12:56 UTC 2012
#21190: Add a action in check_admin_referer() in the event the nonce auth fails
----------------------------+-----------------------------
Reporter: dd32 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version:
Severity: normal | Keywords: 2nd-opinion
----------------------------+-----------------------------
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);
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21190>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list