Introduce some more _doing_it_wrong() calls in nonce functions
|Reported by:||johnbillion||Owned by:|
check_admin_referer() will tell you that you're _doing_it_wrong() if you don't specify the $action parameter. The corresponding wp_nonce_field() and wp_nonce_url() functions should behave the same way.
check_ajax_referer() should also behave the same as check_admin_referer() but I'm not sure if potentially raising notices in AJAX calls is a good idea. I've included it in the patch anyway.
Change History (7)
comment:4 johnbillion — 9 days ago
- Milestone Awaiting Review deleted
- Resolution set to wontfix
- Status changed from new to closed