mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-15 15:16:29 +01:00
Fix documentation for wp_create_nonce() which wrongly suggests these tokens are actually numbers used once.
Built from https://develop.svn.wordpress.org/trunk@28793 git-svn-id: http://core.svn.wordpress.org/trunk@28606 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6997001d12
commit
dc0aca09f5
@ -1697,12 +1697,12 @@ endif;
|
|||||||
|
|
||||||
if ( !function_exists('wp_create_nonce') ) :
|
if ( !function_exists('wp_create_nonce') ) :
|
||||||
/**
|
/**
|
||||||
* Creates a random, one time use token.
|
* Creates a cryptographic token tied to a specific action, user, and window of time.
|
||||||
*
|
*
|
||||||
* @since 2.0.3
|
* @since 2.0.3
|
||||||
*
|
*
|
||||||
* @param string|int $action Scalar value to add context to the nonce.
|
* @param string $action Scalar value to add context to the nonce.
|
||||||
* @return string The one use form token
|
* @return string The token.
|
||||||
*/
|
*/
|
||||||
function wp_create_nonce($action = -1) {
|
function wp_create_nonce($action = -1) {
|
||||||
$user = wp_get_current_user();
|
$user = wp_get_current_user();
|
||||||
|
Loading…
Reference in New Issue
Block a user