Ticket #21111: 21111.diff
File 21111.diff, 617 bytes (added by , 12 years ago) |
---|
-
pluggable.php
1256 1256 function wp_verify_nonce($nonce, $action = -1) { 1257 1257 $user = wp_get_current_user(); 1258 1258 $uid = (int) $user->ID; 1259 if ( empty( $uid ) ) 1260 $uid = apply_filters( 'nonce_anonymous', $uid ); 1259 1261 1260 1262 $i = wp_nonce_tick(); 1261 1263 … … 1282 1284 function wp_create_nonce($action = -1) { 1283 1285 $user = wp_get_current_user(); 1284 1286 $uid = (int) $user->ID; 1287 if ( empty( $uid ) ) 1288 $uid = apply_filters( 'nonce_anonymous', $uid ); 1285 1289 1286 1290 $i = wp_nonce_tick(); 1287 1291