[wp-trac] [WordPress Trac] #63087: Make the Default Avatar support Gravatar's newly added Initials Avatars and Color Avatars

WordPress Trac noreply at wordpress.org
Fri Oct 3 23:50:56 UTC 2025


#63087: Make the Default Avatar support Gravatar's newly added Initials Avatars and
Color Avatars
-------------------------+-----------------------
 Reporter:  haozi        |       Owner:  audrasjb
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  6.9
Component:  Users        |     Version:
 Severity:  normal       |  Resolution:  fixed
 Keywords:  has-patch    |     Focuses:
-------------------------+-----------------------

Comment (by SergeyBiryukov):

 In [changeset:"60897" 60897]:
 {{{
 #!CommitTicketReference repository="" revision="60897"
 Coding Standards: Simplify the `initials` avatar type handling in
 `get_avatar_data()`.

 Includes:
 * Converting a long ternary to an `if/elseif` block for better
 readability.
 * Reusing an existing translatable string for user's first name and last
 name.
 * Replacing `empty()` checks with more specific checks for an empty
 string.
 * Replacing `is_object()` check with a check for a `WP_Comment` instance.

 Follow-up to [53501], [60269].

 See #63087.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/63087#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list