diff --git wp-includes/wp-db.php wp-includes/wp-db.php
index 553cd39d9f..bd488258ba 100644
|
|
|
class wpdb { |
| 1964 | 1964 | // If ext/hash is not present, compat.php's hash_hmac() does not support sha256. |
| 1965 | 1965 | $algo = function_exists( 'hash' ) ? 'sha256' : 'sha1'; |
| 1966 | 1966 | // Old WP installs may not have AUTH_SALT defined. |
| 1967 | | $salt = defined( 'AUTH_SALT' ) ? AUTH_SALT : rand(); |
| | 1967 | $salt = defined( 'AUTH_SALT' ) && AUTH_SALT ? AUTH_SALT : strval(rand()); |
| 1968 | 1968 | |
| 1969 | 1969 | $placeholder = '{' . hash_hmac( $algo, uniqid( $salt, true ), $salt ) . '}'; |
| 1970 | 1970 | } |