From 48244e103179542e36cde1defe32c73813f4403c Mon Sep 17 00:00:00 2001
From: Luke Woodward <luke.woodward@10up.com>
Date: Fri, 16 May 2014 00:17:13 -0700
Subject: [PATCH] Remove absint calls for abs and intval

---
 object-cache.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/object-cache.php b/object-cache.php
index d5fbac3..67fedb4 100644
--- a/object-cache.php
+++ b/object-cache.php
@@ -455,7 +455,7 @@ class WP_Object_Cache {
 		}
 
 		// Save to Redis
-		$expiration = absint( $expiration );
+		$expiration = abs( intval( $expiration ) );
 		if ( $expiration ) {
 			$result = $this->parse_predis_response( $this->redis->setex( $derived_key, $expiration, $this->prepare_value_for_redis( $value ) ) );
 		} else {
@@ -500,7 +500,7 @@ class WP_Object_Cache {
 	 * @return  bool            Returns TRUE on success or FALSE on failure.
 	 */
 	public function flush( $delay = 0 ) {
-		$delay = absint( $delay );
+		$delay = abs( intval( $delay ) );
 		if ( $delay ) {
 			sleep( $delay );
 		}
@@ -633,7 +633,7 @@ class WP_Object_Cache {
 		}
 
 		// Save to Redis
-		$expiration = absint( $expiration );
+		$expiration = abs( intval( $expiration ) );
 		if ( $expiration ) {
 			$result = $this->parse_predis_response( $this->redis->setex( $derived_key, $expiration, $this->prepare_value_for_redis( $value ) ) );
 		} else {
-- 
GitLab