Make WordPress Core

Opened 3 years ago

Last modified 3 years ago

#45610 new enhancement

oEmbed Tweets from Twitter with external links uses

Reported by: micasuh Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.0
Component: Embeds Keywords: needs-patch
Focuses: Cc:


Currently, when embedding a Tweet that has an external link, WordPress imports the string value from the link element with the type="application/json+oembed" attribute that includes a URL shortener

My understanding is that is also a tracker for Twitter's analytics and it doesn't seem necessary for WordPress to support this.

It makes sense for WordPress' oEmbed feature to use the data attribute "data-expanded-url" that contains the original URL.

Change History (2)

#1 @chriscct7
3 years ago

data-expanded-url is not available for all tweets. It's noted by Twitter to be only available (for example; there are other restrictions) for tweets that are made within the last 13 months, not older tweets.

#2 @chriscct7
3 years ago

  • Keywords needs-patch added; oembed twitter removed
Note: See TracTickets for help on using tickets.