Changeset 10120 for trunk/wp-includes/pluggable.php
- Timestamp:
- 12/07/2008 09:31:13 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/pluggable.php
r9775 r10120 1160 1160 1161 1161 // Nonce generated 0-12 hours ago 1162 if ( substr(wp_hash($i . $action . $uid ), -12, 10) == $nonce )1162 if ( substr(wp_hash($i . $action . $uid, 'nonce'), -12, 10) == $nonce ) 1163 1163 return 1; 1164 1164 // Nonce generated 12-24 hours ago 1165 if ( substr(wp_hash(($i - 1) . $action . $uid ), -12, 10) == $nonce )1165 if ( substr(wp_hash(($i - 1) . $action . $uid, 'nonce'), -12, 10) == $nonce ) 1166 1166 return 2; 1167 1167 // Invalid nonce … … 1185 1185 $i = wp_nonce_tick(); 1186 1186 1187 return substr(wp_hash($i . $action . $uid ), -12, 10);1187 return substr(wp_hash($i . $action . $uid, 'nonce'), -12, 10); 1188 1188 } 1189 1189 endif; … … 1273 1273 } 1274 1274 } 1275 } elseif ( 'nonce' == $scheme ) { 1276 if ( defined('NONCE_KEY') && ('' != NONCE_KEY) && ( $wp_default_secret_key != NONCE_KEY) ) 1277 $secret_key = NONCE_KEY; 1278 1279 if ( defined('NONCE_SALT') ) { 1280 $salt = NONCE_SALT; 1281 } else { 1282 $salt = get_option('nonce_salt'); 1283 if ( empty($salt) ) { 1284 $salt = wp_generate_password(); 1285 update_option('nonce_salt', $salt); 1286 } 1287 } 1275 1288 } else { 1276 1289 // ensure each auth scheme has its own unique salt
Note: See TracChangeset
for help on using the changeset viewer.