Improve the @param docs for src/wp-includes/pluggable*.
See #30224. Built from https://develop.svn.wordpress.org/trunk@30667 git-svn-id: http://core.svn.wordpress.org/trunk@30657 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -73,7 +73,7 @@ if ( !function_exists('get_currentuserinfo') ) :
|
||||
*
|
||||
* @uses $current_user Checks if the current user is set
|
||||
*
|
||||
* @return bool|null False on XML-RPC Request and invalid auth cookie. Null when current user set.
|
||||
* @return null|false False on XML-RPC Request and invalid auth cookie. Null when current user set.
|
||||
*/
|
||||
function get_currentuserinfo() {
|
||||
global $current_user;
|
||||
@@ -1064,8 +1064,8 @@ if ( !function_exists('check_admin_referer') ) :
|
||||
*
|
||||
* @since 1.2.0
|
||||
*
|
||||
* @param string $action Action nonce
|
||||
* @param string $query_arg where to look for nonce in $_REQUEST (since 2.5)
|
||||
* @param int|string $action Action nonce
|
||||
* @param string $query_arg Where to look for nonce in $_REQUEST (since 2.5)
|
||||
*/
|
||||
function check_admin_referer($action = -1, $query_arg = '_wpnonce') {
|
||||
if ( -1 == $action )
|
||||
@@ -1098,8 +1098,8 @@ if ( !function_exists('check_ajax_referer') ) :
|
||||
*
|
||||
* @since 2.0.3
|
||||
*
|
||||
* @param string $action Action nonce
|
||||
* @param string $query_arg where to look for nonce in $_REQUEST (since 2.5)
|
||||
* @param int|string $action Action nonce
|
||||
* @param string $query_arg Where to look for nonce in $_REQUEST (since 2.5)
|
||||
*/
|
||||
function check_ajax_referer( $action = -1, $query_arg = false, $die = true ) {
|
||||
$nonce = '';
|
||||
@@ -1666,7 +1666,7 @@ if ( !function_exists('wp_nonce_tick') ) :
|
||||
*
|
||||
* @since 2.5.0
|
||||
*
|
||||
* @return int
|
||||
* @return float Float value rounded up to the next highest integer.
|
||||
*/
|
||||
function wp_nonce_tick() {
|
||||
/**
|
||||
@@ -1691,7 +1691,7 @@ if ( !function_exists('wp_verify_nonce') ) :
|
||||
*
|
||||
* @since 2.0.3
|
||||
*
|
||||
* @param string $nonce Nonce that was used in the form to verify
|
||||
* @param string $nonce Nonce that was used in the form to verify
|
||||
* @param string|int $action Should give context to what is taking place and be the same when nonce was created.
|
||||
* @return bool Whether the nonce check passed or failed.
|
||||
*/
|
||||
@@ -1741,7 +1741,7 @@ if ( !function_exists('wp_create_nonce') ) :
|
||||
*
|
||||
* @since 2.0.3
|
||||
*
|
||||
* @param string $action Scalar value to add context to the nonce.
|
||||
* @param string|int $action Scalar value to add context to the nonce.
|
||||
* @return string The token.
|
||||
*/
|
||||
function wp_create_nonce($action = -1) {
|
||||
@@ -2090,7 +2090,7 @@ if ( !function_exists( 'get_avatar' ) ) :
|
||||
* @param int $size Size of the avatar image
|
||||
* @param string $default URL to a default image to use if no avatar is available
|
||||
* @param string $alt Alternative text to use in image tag. Defaults to blank
|
||||
* @return string `<img>` tag for the user's avatar.
|
||||
* @return false|string `<img>` tag for the user's avatar.
|
||||
*/
|
||||
function get_avatar( $id_or_email, $size = '96', $default = '', $alt = false ) {
|
||||
if ( ! get_option('show_avatars') )
|
||||
|
||||
Reference in New Issue
Block a user