Changeset 33891 for trunk/src/wp-includes/link-template.php
- Timestamp:
- 09/03/2015 06:16:35 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/link-template.php
r33805 r33891 3455 3455 * 3456 3456 * @param mixed $id_or_email The Gravatar to retrieve a URL for. Accepts a user_id, gravatar md5 hash, 3457 * user email, WP_User object, WP_Post object, or comment object.3457 * user email, WP_User object, WP_Post object, or WP_Comment object. 3458 3458 * @param array $args { 3459 3459 * Optional. Arguments to return instead of the default arguments. … … 3486 3486 * @since 4.2.0 3487 3487 * 3488 * @param mixed $id_or_email The Gravatar to check the data against. Accepts a user_id, gravatar md5 hash,3489 * user email, WP_User object, WP_Post object, or comment object.3488 * @param mixed $id_or_email The Gravatar to retrieve. Accepts a user_id, gravatar md5 hash, 3489 * user email, WP_User object, WP_Post object, or WP_Comment object. 3490 3490 * @param array $args { 3491 3491 * Optional. Arguments to return instead of the default arguments. … … 3587 3587 * @since 4.2.0 3588 3588 * 3589 * @param array $args Arguments passed to get_avatar_data(), after processing. 3590 * @param int|object|string $id_or_email A user ID, email address, or comment object. 3589 * @param array $args Arguments passed to get_avatar_data(), after processing. 3590 * @param mixed $id_or_email The Gravatar to retrieve. Accepts a user_id, gravatar md5 hash, 3591 * user email, WP_User object, WP_Post object, or WP_Comment object. 3591 3592 */ 3592 3593 $args = apply_filters( 'pre_get_avatar_data', $args, $id_or_email ); … … 3617 3618 // Post Object 3618 3619 $user = get_user_by( 'id', (int) $id_or_email->post_author ); 3619 } elseif ( is_object( $id_or_email ) && isset( $id_or_email->comment_ID ) ) { 3620 // Comment Object 3621 3620 } elseif ( $id_or_email instanceof WP_Comment ) { 3622 3621 /** 3623 3622 * Filter the list of allowed comment types for retrieving avatars. … … 3682 3681 * @since 4.2.0 3683 3682 * 3684 * @param string $url The URL of the avatar. 3685 * @param int|object|string $id_or_email A user ID, email address, or comment object. 3686 * @param array $args Arguments passed to get_avatar_data(), after processing. 3683 * @param string $url The URL of the avatar. 3684 * @param mixed $id_or_email The Gravatar to retrieve. Accepts a user_id, gravatar md5 hash, 3685 * user email, WP_User object, WP_Post object, or WP_Comment object. 3686 * @param array $args Arguments passed to get_avatar_data(), after processing. 3687 3687 */ 3688 3688 $args['url'] = apply_filters( 'get_avatar_url', $url, $id_or_email, $args ); … … 3693 3693 * @since 4.2.0 3694 3694 * 3695 * @param array $args Arguments passed to get_avatar_data(), after processing. 3696 * @param int|object|string $id_or_email A user ID, email address, or comment object. 3695 * @param array $args Arguments passed to get_avatar_data(), after processing. 3696 * @param mixed $id_or_email The Gravatar to retrieve. Accepts a user_id, gravatar md5 hash, 3697 * user email, WP_User object, WP_Post object, or WP_Comment object. 3697 3698 */ 3698 3699 return apply_filters( 'get_avatar_data', $args, $id_or_email );
Note: See TracChangeset
for help on using the changeset viewer.