From 18d069703bb7e42ca2c1062f63751003394e6397 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Fri, 20 Jun 2014 20:46:13 +0000 Subject: [PATCH] Fix documentation for wp_create_nonce() which wrongly suggests these tokens are actually numbers used once. git-svn-id: https://develop.svn.wordpress.org/trunk@28793 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/pluggable.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/pluggable.php b/src/wp-includes/pluggable.php index 551fba6ec6..4ccafe6f1d 100644 --- a/src/wp-includes/pluggable.php +++ b/src/wp-includes/pluggable.php @@ -1697,12 +1697,12 @@ endif; 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 * - * @param string|int $action Scalar value to add context to the nonce. - * @return string The one use form token + * @param string $action Scalar value to add context to the nonce. + * @return string The token. */ function wp_create_nonce($action = -1) { $user = wp_get_current_user();