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:
parent
a0d466481f
commit
5554345fa8
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user