Changeset 42119 for trunk/src/wp-includes/wp-db.php
- Timestamp:
- 11/07/2017 12:29:26 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/wp-db.php
r42056 r42119 1947 1947 $algo = function_exists( 'hash' ) ? 'sha256' : 'sha1'; 1948 1948 // Old WP installs may not have AUTH_SALT defined. 1949 $salt = defined( 'AUTH_SALT' ) ? AUTH_SALT : rand();1949 $salt = defined( 'AUTH_SALT' ) ? AUTH_SALT : (string) rand(); 1950 1950 1951 1951 $placeholder = '{' . hash_hmac( $algo, uniqid( $salt, true ), $salt ) . '}';
Note: See TracChangeset
for help on using the changeset viewer.