[wp-trac] [WordPress Trac] #32207: check_admin_referer action only fires on success
WordPress Trac
noreply at wordpress.org
Thu Apr 30 13:08:20 UTC 2015
#32207: check_admin_referer action only fires on success
----------------------------+-------------------------
Reporter: markjaquith | Owner:
Type: enhancement | Status: new
Priority: low | Milestone: 4.3
Component: Administration | Version: trunk
Severity: minor | Keywords: needs-patch
Focuses: |
----------------------------+-------------------------
The `check_admin_referer` action in `check_admin_referer()` fires after
the conditional `die()`. So there is no way to use this hook to log nonce
failures in the admin.
I think we could move the action above the `if`/`die()` portion without
causing any trouble.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32207>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list