From 9f772e8805c9a1df99513a6e8f6d349c517f25fe Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Mon, 6 Feb 2023 21:28:15 +0000 Subject: [PATCH] Users: Update `get_avatar_url()` and `get_avatar()` to include RoboHash support. Follow-up to [55238]. Fixes #57493. git-svn-id: https://develop.svn.wordpress.org/trunk@55239 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/link-template.php | 8 ++++---- src/wp-includes/pluggable.php | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/wp-includes/link-template.php b/src/wp-includes/link-template.php index d4cf7b55cd..893d1e5932 100644 --- a/src/wp-includes/link-template.php +++ b/src/wp-includes/link-template.php @@ -4223,10 +4223,10 @@ function the_shortlink( $text = '', $title = '', $before = '', $after = '' ) { * * @type int $size Height and width of the avatar in pixels. Default 96. * @type string $default URL for the default image or a default type. Accepts '404' (return - * a 404 instead of a default image), 'retro' (8bit), 'monsterid' (monster), - * 'wavatar' (cartoon face), 'indenticon' (the "quilt"), 'mystery', 'mm', - * or 'mysteryman' (The Oyster Man), 'blank' (transparent GIF), or - * 'gravatar_default' (the Gravatar logo). Default is the value of the + * a 404 instead of a default image), 'retro' (8bit), 'RoboHash' (robohash), + * 'monsterid' (monster), 'wavatar' (cartoon face), 'indenticon' (the "quilt"), + * 'mystery', 'mm', or 'mysteryman' (The Oyster Man), 'blank' (transparent GIF), + * or 'gravatar_default' (the Gravatar logo). Default is the value of the * 'avatar_default' option, with a fallback of 'mystery'. * @type bool $force_default Whether to always show the default image, never the Gravatar. Default false. * @type string $rating What rating to display avatars up to. Accepts 'G', 'PG', 'R', 'X', and are diff --git a/src/wp-includes/pluggable.php b/src/wp-includes/pluggable.php index dded2fee86..546dcf5271 100644 --- a/src/wp-includes/pluggable.php +++ b/src/wp-includes/pluggable.php @@ -2770,9 +2770,9 @@ if ( ! function_exists( 'get_avatar' ) ) : * @param mixed $id_or_email The Gravatar to retrieve. Accepts a user_id, gravatar md5 hash, * user email, WP_User object, WP_Post object, or WP_Comment object. * @param int $size Optional. Height and width of the avatar image file in pixels. Default 96. - * @param string $default_value Optional. URL for the default image or a default type. Accepts '404' - * (return a 404 instead of a default image), 'retro' (8bit), 'monsterid' - * (monster), 'wavatar' (cartoon face), 'indenticon' (the "quilt"), + * @param string $default_value URL for the default image or a default type. Accepts '404' (return + * a 404 instead of a default image), 'retro' (8bit), 'RoboHash' (robohash), + * 'monsterid' (monster), 'wavatar' (cartoon face), 'indenticon' (the "quilt"), * 'mystery', 'mm', or 'mysteryman' (The Oyster Man), 'blank' (transparent GIF), * or 'gravatar_default' (the Gravatar logo). Default is the value of the * 'avatar_default' option, with a fallback of 'mystery'.