Changeset 29409
- Timestamp:
- 08/06/2014 05:57:52 PM (9 years ago)
- Location:
- branches/3.8
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.8
- Property svn:mergeinfo changed
/branches/3.9 merged: 29408
- Property svn:mergeinfo changed
-
branches/3.8/src/wp-includes/pluggable.php
r29399 r29409 1343 1343 1344 1344 // Nonce generated 0-12 hours ago 1345 $expected = substr( wp_hash( $i . '|' . $action . '|' . $uid . '|' . $token, 'nonce'), -12, 10 );1345 $expected = substr( wp_hash( $i . '|' . $action . '|' . $uid, 'nonce'), -12, 10 ); 1346 1346 if ( hash_equals( $expected, $nonce ) ) { 1347 1347 return 1; … … 1349 1349 1350 1350 // Nonce generated 12-24 hours ago 1351 $expected = substr( wp_hash( ( $i - 1 ) . '|' . $action . '|' . $uid . '|' . $token, 'nonce' ), -12, 10 );1351 $expected = substr( wp_hash( ( $i - 1 ) . '|' . $action . '|' . $uid, 'nonce' ), -12, 10 ); 1352 1352 if ( hash_equals( $expected, $nonce ) ) { 1353 1353 return 2; … … 1376 1376 $i = wp_nonce_tick(); 1377 1377 1378 return substr(wp_hash($i . $action. $uid, 'nonce'), -12, 10);1378 return substr(wp_hash($i . '|' . $action . '|' . $uid, 'nonce'), -12, 10); 1379 1379 } 1380 1380 endif;
Note: See TracChangeset
for help on using the changeset viewer.