Make WordPress Core

Changeset 55239


Ignore:
Timestamp:
02/06/2023 09:28:15 PM (20 months ago)
Author:
audrasjb
Message:

Users: Update get_avatar_url() and get_avatar() to include RoboHash support.

Follow-up to [55238].

Fixes #57493.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/link-template.php

    r55085 r55239  
    42244224 *     @type int    $size           Height and width of the avatar in pixels. Default 96.
    42254225 *     @type string $default        URL for the default image or a default type. Accepts '404' (return
    4226  *                                  a 404 instead of a default image), 'retro' (8bit), 'monsterid' (monster),
    4227  *                                  'wavatar' (cartoon face), 'indenticon' (the "quilt"), 'mystery', 'mm',
    4228  *                                  or 'mysteryman' (The Oyster Man), 'blank' (transparent GIF), or
    4229  *                                  'gravatar_default' (the Gravatar logo). Default is the value of the
     4226 *                                  a 404 instead of a default image), 'retro' (8bit), 'RoboHash' (robohash),
     4227 *                                  'monsterid' (monster), 'wavatar' (cartoon face), 'indenticon' (the "quilt"),
     4228 *                                  'mystery', 'mm', or 'mysteryman' (The Oyster Man), 'blank' (transparent GIF),
     4229 *                                  or 'gravatar_default' (the Gravatar logo). Default is the value of the
    42304230 *                                  'avatar_default' option, with a fallback of 'mystery'.
    42314231 *     @type bool   $force_default  Whether to always show the default image, never the Gravatar. Default false.
  • trunk/src/wp-includes/pluggable.php

    r55210 r55239  
    27712771     *                              user email, WP_User object, WP_Post object, or WP_Comment object.
    27722772     * @param int    $size          Optional. Height and width of the avatar image file in pixels. Default 96.
    2773      * @param string $default_value Optional. URL for the default image or a default type. Accepts '404'
    2774      *                              (return a 404 instead of a default image), 'retro' (8bit), 'monsterid'
    2775      *                              (monster), 'wavatar' (cartoon face), 'indenticon' (the "quilt"),
     2773     * @param string $default_value URL for the default image or a default type. Accepts '404' (return
     2774     *                              a 404 instead of a default image), 'retro' (8bit), 'RoboHash' (robohash),
     2775     *                              'monsterid' (monster), 'wavatar' (cartoon face), 'indenticon' (the "quilt"),
    27762776     *                              'mystery', 'mm', or 'mysteryman' (The Oyster Man), 'blank' (transparent GIF),
    27772777     *                              or 'gravatar_default' (the Gravatar logo). Default is the value of the
Note: See TracChangeset for help on using the changeset viewer.