[wp-trac] [WordPress Trac] #58970: Cannot access default URL obtained by `get_avatar_url()`
WordPress Trac
noreply at wordpress.org
Thu Aug 3 14:02:57 UTC 2023
#58970: Cannot access default URL obtained by `get_avatar_url()`
--------------------------+------------------------------
Reporter: wildworks | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by wildworks):
You can get the default image correctly by including the dummy hash value
in the URL as shown below.
{{{
https://0.gravatar.com/avatar/0000000000000000000000000000000?s=96&d=mm&f=y&r=g
}}}
Gutenberg uses the `avatarURL` generated at:
https://github.com/WordPress/wordpress-
develop/blob/b92491b8d22ba88c70b1b98805ba486502a0da05/src/wp-includes
/block-editor.php#L625-L632
The hash value of the first argument should have been empty before, but I
am wondering why it suddenly started returning 404.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58970#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list