Archived
Updates to wp 4.0.1
This commit is contained in:
1 parent
03777ef2b0
commit
70d2335bba
184 files changed
+9953
-3052
No files matched your search
@@ -61,7 +61,12 @@ abstract class WP_Session_Tokens {
|
||||
* @return string A hash of the session token (a verifier).
|
||||
*/
|
||||
final private function hash_token( $token ) {
|
||||
return hash( 'sha256', $token );
|
||||
// If ext/hash is not present, use sha1() instead.
|
||||
if ( function_exists( 'hash' ) ) {
|
||||
return hash( 'sha256', $token );
|
||||
} else {
|
||||
return sha1( $token );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user