Make WordPress Core

#58970 closed defect (bug) (reported-upstream)

Cannot access default URL obtained by `get_avatar_url()`

Reported by: wildworks's profile wildworks Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: Cc:


I searched for the cause from the issue reported on Gutenberg:

The get_avatar_url function always returns the following URL when force_default is enabled.


However, I don't know when, but this URL seems to return a 404.

Change History (3)

#1 @wildworks
12 months ago

You can get the default image correctly by including the dummy hash value in the URL as shown below.

Gutenberg uses the avatarURL generated at:

The hash value of the first argument should have been empty before, but I am wondering why it suddenly started returning 404.

This ticket was mentioned in Slack in #meta by timothybjacobs. View the logs.

12 months ago

#3 @kraftbj
12 months ago

  • Milestone Awaiting Review deleted
  • Resolution set to reported-upstream
  • Status changed from new to closed

I relayed this to the Gravatar team. It does appear to be a valid bug, but I believe this is potentially a regression from a recent Gravatar change (internal repo PR 105387).

For the time being, I'm going to mark this as reported-upstream and close since it isn't a bug in Core from my understanding. It can always be reopened if the Gravatar team discovers my initial investigation is incorrect and it is a Core bug.

Note: See TracTickets for help on using tickets.