Provide fallback salt to accommodate custom schemes. Props tellyworth. fixes #8212
git-svn-id: http://svn.automattic.com/wordpress/trunk@9680 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f2dea2189e
commit
ce1cc49825
|
@ -1270,6 +1270,9 @@ function wp_salt($scheme = 'auth') {
|
||||||
update_option('logged_in_salt', $salt);
|
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);
|
return apply_filters('salt', $secret_key . $salt, $scheme);
|
||||||
|
|
Loading…
Reference in New Issue