Users: Update `get_avatar_url()` and `get_avatar()` to include RoboHash support.
Follow-up to [55238]. Fixes #57493. Built from https://develop.svn.wordpress.org/trunk@55239 git-svn-id: http://core.svn.wordpress.org/trunk@54772 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
cc6bdd0929
commit
b27543461d
|
@ -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
|
||||
|
|
|
@ -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'.
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.2-alpha-55238';
|
||||
$wp_version = '6.2-alpha-55239';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue