Changeset 59803 for trunk/src/wp-includes/class-wpdb.php
- Timestamp:
- 02/11/2025 11:12:03 AM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wpdb.php
r59754 r59803 2413 2413 2414 2414 if ( ! $placeholder ) { 2415 // If ext/hash is not present, compat.php's hash_hmac() does not support sha256.2416 $algo = function_exists( 'hash' ) ? 'sha256' : 'sha1';2417 2415 // Old WP installs may not have AUTH_SALT defined. 2418 2416 $salt = defined( 'AUTH_SALT' ) && AUTH_SALT ? AUTH_SALT : (string) rand(); 2419 2417 2420 $placeholder = '{' . hash_hmac( $algo, uniqid( $salt, true ), $salt ) . '}';2418 $placeholder = '{' . hash_hmac( 'sha256', uniqid( $salt, true ), $salt ) . '}'; 2421 2419 } 2422 2420
Note: See TracChangeset
for help on using the changeset viewer.