Make WordPress Core

Ticket #24030: 24030.diff

File 24030.diff, 853 bytes (added by Shelob9, 11 years ago)
  • wp-includes/pluggable.php

    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') { 
    810810        $referer = strtolower(wp_get_referer());
    811811        $result = isset($_REQUEST[$query_arg]) ? wp_verify_nonce($_REQUEST[$query_arg], $action) : false;
    812812        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 );
    813823                wp_nonce_ays($action);
    814824                die();
    815825        }