WordPress.org

Make WordPress Core

Opened 10 months ago

Last modified 10 months ago

#45610 new enhancement

oEmbed Tweets from Twitter with external links uses t.co

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

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.

Change History (2)

#1 @chriscct7
10 months 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
10 months ago

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