Provide fallback salt to accommodate custom schemes. Props tellyworth. fixes #8212

git-svn-id: https://develop.svn.wordpress.org/trunk@9680 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2008-11-14 16:35:14 +00:00
parent a0d466481f
commit 5554345fa8

View File

@ -1270,6 +1270,9 @@ function wp_salt($scheme = 'auth') {
update_option('logged_in_salt', $salt);
}
}
} else {
// ensure each auth scheme has its own unique salt
$salt = hash_hmac('md5', $scheme, $secret_key);
}
return apply_filters('salt', $secret_key . $salt, $scheme);