diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php
index 9fe26d5..8e63ac4 100644
a
|
b
|
function check_admin_referer($action = -1, $query_arg = '_wpnonce') { |
810 | 810 | $referer = strtolower(wp_get_referer()); |
811 | 811 | $result = isset($_REQUEST[$query_arg]) ? wp_verify_nonce($_REQUEST[$query_arg], $action) : false; |
812 | 812 | if ( !$result && !(-1 == $action && strpos($referer, $adminurl) === 0) ) { |
| 813 | /** |
| 814 | * Fires when nonce verification fails. |
| 815 | * |
| 816 | * Use this action to log when an action fails due to an invalid nonce. |
| 817 | * |
| 818 | * @param string $action The action that was attempted. |
| 819 | * |
| 820 | * @since 3.9.1 |
| 821 | */ |
| 822 | do_action('check_admin_referer_fails', $action ); |
813 | 823 | wp_nonce_ays($action); |
814 | 824 | die(); |
815 | 825 | } |