mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-01 21:21:24 +01:00
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 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
|
* @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),
|
* a 404 instead of a default image), 'retro' (8bit), 'RoboHash' (robohash),
|
||||||
* 'wavatar' (cartoon face), 'indenticon' (the "quilt"), 'mystery', 'mm',
|
* 'monsterid' (monster), 'wavatar' (cartoon face), 'indenticon' (the "quilt"),
|
||||||
* or 'mysteryman' (The Oyster Man), 'blank' (transparent GIF), or
|
* 'mystery', 'mm', or 'mysteryman' (The Oyster Man), 'blank' (transparent GIF),
|
||||||
* 'gravatar_default' (the Gravatar logo). Default is the value of the
|
* or 'gravatar_default' (the Gravatar logo). Default is the value of the
|
||||||
* 'avatar_default' option, with a fallback of 'mystery'.
|
* '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 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
|
* @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,
|
* @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.
|
* 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 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'
|
* @param string $default_value URL for the default image or a default type. Accepts '404' (return
|
||||||
* (return a 404 instead of a default image), 'retro' (8bit), 'monsterid'
|
* a 404 instead of a default image), 'retro' (8bit), 'RoboHash' (robohash),
|
||||||
* (monster), 'wavatar' (cartoon face), 'indenticon' (the "quilt"),
|
* 'monsterid' (monster), 'wavatar' (cartoon face), 'indenticon' (the "quilt"),
|
||||||
* 'mystery', 'mm', or 'mysteryman' (The Oyster Man), 'blank' (transparent GIF),
|
* 'mystery', 'mm', or 'mysteryman' (The Oyster Man), 'blank' (transparent GIF),
|
||||||
* or 'gravatar_default' (the Gravatar logo). Default is the value of the
|
* or 'gravatar_default' (the Gravatar logo). Default is the value of the
|
||||||
* 'avatar_default' option, with a fallback of 'mystery'.
|
* 'avatar_default' option, with a fallback of 'mystery'.
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user