Update timestamp check Closes #4409
This commit is contained in:
parent
a54223f910
commit
f504243b56
|
@ -259,7 +259,7 @@ class WC_API_Authentication {
|
||||||
// remove expired nonces
|
// remove expired nonces
|
||||||
foreach( $used_nonces as $nonce_timestamp => $nonce ) {
|
foreach( $used_nonces as $nonce_timestamp => $nonce ) {
|
||||||
|
|
||||||
if ( $nonce_timestamp < $valid_window )
|
if ( $nonce_timestamp < ( time() - $valid_window ) )
|
||||||
unset( $used_nonces[ $nonce_timestamp ] );
|
unset( $used_nonces[ $nonce_timestamp ] );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue