[wp-trac] [WordPress Trac] #62467: Add Gravatar as oembed provider
WordPress Trac
noreply at wordpress.org
Wed Jun 25 00:36:08 UTC 2025
#62467: Add Gravatar as oembed provider
-----------------------------------------+-----------------------------
Reporter: burtrw | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Embeds | Version:
Severity: normal | Resolution:
Keywords: has-patch reporter-feedback | Focuses:
-----------------------------------------+-----------------------------
Comment (by peterwilsoncc):
Replying to [comment:7 burtrw]:
> @johnbillion Thanks for following up! Our testing is that it looks like
WordPress allows for better custom styling if the allow list autodiscovery
works. Without it, our embeds get an extra border, which really doesn't
look good, but we haven't found where that is coming from.
For sites using auto-discovery, the style tag is stripped from the iframe
but the `frameborder` attribute is permitted
Are you able to test the embed code using the following:
{{{
<iframe src="https://gravatar.com/matt.card" width="351" height="436"
frameborder="0"></iframe>
}}}
I'm seeing a few CSP errors visiting the cards but they don't appear to
affect the display.
To use auto-embeds, links will need to go to the same domain as the embed
so you'll need to do redirects. Eg `gravatar.com/matt/go/x` or
`gravatar.com/matt/go/http://customlink.example.com/` -- see this
[https://github.com/WordPress/wordpress-
develop/blob/415c9f6bb488facb48c44141a7ed4ffc2444e22a/src/js/_enqueues/wp/embed.js#L77-L83
code in the embed.js].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62467#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list