From 8bc2920aae4d2f04fe080d7e9ea599f7fdaee5c5 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 24 Apr 2008 00:30:49 +0000 Subject: [PATCH] hash_hmac is always available. Drop function_exists check git-svn-id: https://develop.svn.wordpress.org/trunk@7797 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/pluggable.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php index 22b8b294c0..8a205cdfca 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -1071,11 +1071,7 @@ if ( !function_exists('wp_hash') ) : function wp_hash($data) { $salt = wp_salt(); - if ( function_exists('hash_hmac') ) { - return hash_hmac('md5', $data, $salt); - } else { - return md5($data . $salt); - } + return hash_hmac('md5', $data, $salt); } endif;