oEmbed Tweets from Twitter with external links uses t.co

Description

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 t.co.

My understanding is that t.co 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.

Oldest firstNewest firstThreaded

Show commentsShow property changes

Change History (2)

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.