wahabmirjan / wp-simple-nonce

A very simple NONCE for WordPress developers.
GNU General Public License v2.0
38 stars 11 forks source link

Change nonce expiry time checking #2

Closed KTOmega closed 7 years ago

KTOmega commented 9 years ago

The nonce was expiring practically instantly, as fetchNonce was checking if the expiry time was less than time() + 86400.

zaclittleberry commented 7 years ago

After some time trying to figure out what I was doing wrong and stepping through the code I came to the same conclusion/solution independently. Just wish I had checked pull requests before spending so much time on it :P

+1 for @KTOmega 's patch.