Make WordPress Core


Ignore:
Timestamp:
08/26/2015 12:05:11 AM (11 years ago)
Author:
SergeyBiryukov
Message:

Add 'wp_verify_nonce_failed' action that fires when nonce verification fails.

props johnbillion, garza, Shelob9.
fixes #24030.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/pluggable.php

    r33743 r33744  
    18131813    }
    18141814
     1815    /**
     1816     * Fires when nonce verification fails.
     1817     *
     1818     * @since 4.4.0
     1819     *
     1820     * @param string     $nonce  The invalid nonce.
     1821     * @param string|int $action The nonce action.
     1822     * @param WP_User    $user   The current user object.
     1823     * @param string     $token  The user's session token.
     1824     */
     1825    do_action( 'wp_verify_nonce_failed', $nonce, $action, $user, $token );
     1826
    18151827    // Invalid nonce
    18161828    return false;
Note: See TracChangeset for help on using the changeset viewer.