Update timestamp check Closes #4409

This commit is contained in:
Mike Jolley 2014-01-08 13:40:06 +00:00
parent a54223f910
commit f504243b56
1 changed files with 1 additions and 1 deletions

View File

@ -259,7 +259,7 @@ class WC_API_Authentication {
// remove expired nonces
foreach( $used_nonces as $nonce_timestamp => $nonce ) {
if ( $nonce_timestamp < $valid_window )
if ( $nonce_timestamp < ( time() - $valid_window ) )
unset( $used_nonces[ $nonce_timestamp ] );
}