Changeset 29408
- Timestamp:
- 08/06/2014 05:52:49 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.9/src/wp-includes/pluggable.php
r29398 r29408 1659 1659 1660 1660 // Nonce generated 0-12 hours ago 1661 $expected = substr( wp_hash( $i . '|' . $action . '|' . $uid . '|' . $token, 'nonce'), -12, 10 );1661 $expected = substr( wp_hash( $i . '|' . $action . '|' . $uid, 'nonce'), -12, 10 ); 1662 1662 if ( hash_equals( $expected, $nonce ) ) { 1663 1663 return 1; … … 1665 1665 1666 1666 // Nonce generated 12-24 hours ago 1667 $expected = substr( wp_hash( ( $i - 1 ) . '|' . $action . '|' . $uid . '|' . $token, 'nonce' ), -12, 10 );1667 $expected = substr( wp_hash( ( $i - 1 ) . '|' . $action . '|' . $uid, 'nonce' ), -12, 10 ); 1668 1668 if ( hash_equals( $expected, $nonce ) ) { 1669 1669 return 2; … … 1694 1694 $i = wp_nonce_tick(); 1695 1695 1696 return substr(wp_hash($i . $action. $uid, 'nonce'), -12, 10);1696 return substr(wp_hash($i . '|' . $action . '|' . $uid, 'nonce'), -12, 10); 1697 1697 } 1698 1698 endif;
Note: See TracChangeset
for help on using the changeset viewer.