Closed krispy1298 closed 2 years ago
Yes, if I understand correctly this method is called once a day to clear expired nonces, so presumably the condition should be $singleNonce->option_value < time()
. Unless we are mistaken, this seems like a pretty serious bug. @calevans, if you are still around, could you please tell us what you think?
Resolved. Will be released in v1.4
Reopening. Realised that expiration time is incorrectly calculated.
Resolved
https://github.com/wahabmirjan/wp-simple-nonce/blob/master/WPSimpleNonce.php#L108
Shouldn't the
option_value>time()+86400
beoption_value<time()+86400
oroption_value<time()
?