From f504243b56eafaed33dd1d5120f7436fcd389b85 Mon Sep 17 00:00:00 2001 From: Mike Jolley Date: Wed, 8 Jan 2014 13:40:06 +0000 Subject: [PATCH] Update timestamp check Closes #4409 --- includes/api/class-wc-api-authentication.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/class-wc-api-authentication.php b/includes/api/class-wc-api-authentication.php index bcbf581a2de..22ed5eebd95 100644 --- a/includes/api/class-wc-api-authentication.php +++ b/includes/api/class-wc-api-authentication.php @@ -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 ] ); }