Changeset 32042
- Timestamp:
- 04/05/2015 04:03:12 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/link-template.php
r31800 r32042 3391 3391 * @param mixed $id_or_email The Gravatar to retrieve a URL for. Accepts a user_id, gravatar md5 hash, 3392 3392 * user email, WP_User object, WP_Post object, or comment object. 3393 * @param array $args 3393 * @param array $args { 3394 3394 * Optional. Arguments to return instead of the default arguments. 3395 3395 * … … 3404 3404 * @type string $rating What rating to display avatars up to. Accepts 'G', 'PG', 'R', 'X', and are 3405 3405 * judged in that order. Default is the value of the 'avatar_rating' option. 3406 * @type string $scheme URL scheme to use. See {@see set_url_scheme()}for accepted values.3406 * @type string $scheme URL scheme to use. See set_url_scheme() for accepted values. 3407 3407 * Default null. 3408 3408 * @type array $processed_args When the function returns, the value will be the processed/sanitized $args 3409 3409 * plus a "found_avatar" guess. Pass as a reference. Default null. 3410 3410 * } 3411 *3412 3411 * @return false|string The URL of the avatar we found, or false if we couldn't find an avatar. 3413 3412 */ … … 3424 3423 * @param mixed $id_or_email The Gravatar to check the data against. Accepts a user_id, gravatar md5 hash, 3425 3424 * user email, WP_User object, WP_Post object, or comment object. 3426 * @param array $args 3425 * @param array $args { 3427 3426 * Optional. Arguments to return instead of the default arguments. 3428 3427 * … … 3439 3438 * @type string $rating What rating to display avatars up to. Accepts 'G', 'PG', 'R', 'X', and are 3440 3439 * judged in that order. Default is the value of the 'avatar_rating' option. 3441 * @type string $scheme URL scheme to use. See {@see set_url_scheme()}for accepted values.3440 * @type string $scheme URL scheme to use. See set_url_scheme() for accepted values. 3442 3441 * Default null. 3443 3442 * @type array $processed_args When the function returns, the value will be the processed/sanitized $args … … 3445 3444 * @type string $extra_attr HTML attributes to insert in the IMG element. Is not sanitized. Default empty. 3446 3445 * } 3447 *3448 3446 * @return array $processed_args { 3449 * Along with the arguments passed in $args, this will contain a couple of extra arguments.3447 * Along with the arguments passed in `$args`, this will contain a couple of extra arguments. 3450 3448 * 3451 3449 * @type bool $found_avatar True if we were able to find an avatar for this user, … … 3519 3517 * 3520 3518 * Passing a non-null value in the 'url' member of the return array will 3521 * effectively short circuit {@see get_avatar_data()}, passing the value3522 * th rough the 'get_avatar_data'filter and returning early.3519 * effectively short circuit get_avatar_data(), passing the value through 3520 * the {@see 'get_avatar_data'} filter and returning early. 3523 3521 * 3524 3522 * @since 4.2.0 … … 3615 3613 * @since 4.2.0 3616 3614 * 3617 * @param string $url 3618 * @param int|object|string $id_or_email 3619 * @param array $args 3615 * @param string $url The URL of the avatar. 3616 * @param int|object|string $id_or_email A user ID, email address, or comment object. 3617 * @param array $args Arguments passed to get_avatar_data(), after processing. 3620 3618 */ 3621 3619 $args['url'] = apply_filters( 'get_avatar_url', $url, $id_or_email, $args ); … … 3626 3624 * @since 4.2.0 3627 3625 * 3628 * @param array $args 3629 * @param int|object|string $id_or_email 3626 * @param array $args Arguments passed to get_avatar_data(), after processing. 3627 * @param int|object|string $id_or_email A user ID, email address, or comment object. 3630 3628 */ 3631 3629 return apply_filters( 'get_avatar_data', $args, $id_or_email );
Note: See TracChangeset
for help on using the changeset viewer.