hash_hmac is always available. Drop function_exists check

git-svn-id: http://svn.automattic.com/wordpress/trunk@7797 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-04-24 00:30:49 +00:00
parent 4680f8f084
commit eb9c8420db
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;