From eb9c8420dbde7430d24263cab4d986210f6becf8 Mon Sep 17 00:00:00 2001 From: ryan <ryan@1a063a9b-81f0-0310-95a4-ce76da25c4cd> Date: Thu, 24 Apr 2008 00:30:49 +0000 Subject: [PATCH] hash_hmac is always available. Drop function_exists check git-svn-id: http://svn.automattic.com/wordpress/trunk@7797 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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;