public static function verifyNonce($nonce, $action)
    {
        //Safety check for multiple nonces
        if (is_array($nonce)) {
            $nonce = array_shift($nonce);
        }

        //Nonce generated 0-12 hours ago
        if ($nonce === self::getNonce($action)) {
            return true;
        }

        //Nonce generated 12-24 hours ago
        $previousTick = true;

        return $nonce === self::getNonce($action, $previousTick);
    }
public static function verifyNonce($nonce, $action)
    {
        //Safety check for multiple nonces
        if (is_array($nonce)) {
            $nonce = array_shift($nonce);
        }

        //Nonce generated 0-12 hours ago
        if ($nonce === self::getNonce($action)) {
            return true;
        }

        //Nonce generated 12-24 hours ago
        $previousTick = true;

        return $nonce === self::getNonce($action, $previousTick);
    }
public static function verifyNonce ( $ nonce , $ action ) { //Safety check for multiple nonces if ( is_array ( $ nonce ) ) { $ nonce = array_shift ( $ nonce ) ; } //Nonce generated 0-12 hours ago if ( $ nonce === self :: getNonce ( $ action ) ) { return true ; } //Nonce generated 12-24 hours ago $ previousTick = true ; return $ nonce === self :: getNonce ( $ action , $ previousTick ) ; }
Verify the passed nonce for the give action

@param string|string[] $nonce  the nonce to verify
@param string $action the action to verify the nonce to

@return boolean verified or not
Verify the passed nonce for the give action