hash_hmac is always available. Drop function_exists check

git-svn-id: https://develop.svn.wordpress.org/trunk@7797 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-04-24 00:30:49 +00:00
parent 07b72e6dd9
commit 8bc2920aae
1 changed files with 1 additions and 5 deletions

View File

@ -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;