Definition:
function wp_nonce_tick() {}
Get the time-dependent variable for nonce creation.
A nonce has a lifespan of two ticks. Nonces in their second tick may be updated, e.g. by autosave.
Defined filters
- nonce_life
apply_filters('nonce_life', 86400)
Source code
function wp_nonce_tick() {
$nonce_life = apply_filters('nonce_life', 86400);
return ceil(time() / ( $nonce_life / 2 ));
}
3951

February 12, 2011 


No comments yet... Be the first to leave a reply!