[wp-trac] [WordPress Trac] #54414: Support embedding Mobile Twitter URLs
WordPress Trac
noreply at wordpress.org
Wed Nov 10 16:04:55 UTC 2021
#54414: Support embedding Mobile Twitter URLs
-------------------------+-----------------------------
Reporter: dpcalhoun | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 5.8.1
Severity: normal | Keywords:
Focuses: rest-api |
-------------------------+-----------------------------
When embedding a mobile variant of a Tweet URL, the Gutenberg Embed block
considers the URL to be an invalid embed.
== Steps to Reproduce
1. Add an Embed block via the web or native mobile Gutenberg block editor.
2. Set the Embed block URL to a mobile Twitter URL:
https://mobile.twitter.com/rauchg/status/807626710350839808
3. Save the Embed block settings, persisting the URL.
== Expected Result
The Embed block displays a preview of the Tweet as an embed.
== Actual Result
The Embed block marks the URL as invalid, resulting in a error message or
a plain text URL.
== Related
* [https://github.com/WordPress/gutenberg/issues/35357 Gutenberg Issue]
* [https://github.com/WordPress/wordpress-
develop/blob/f2d146d3f1ebd5661af2efd3099b0c988df538c8/src/wp-includes
/class-wp-oembed.php#L67-L72 Relevant oembed code]
* oEmbed API response message:
{{{
{
"code": "oembed_invalid_url",
"message": "Not Found",
"data": {
"status": 404
}
}
}}}
== Environment
* **WordPress:** 5.8.1
* **Theme:** Twenty Twenty-One
* **Plugins:** none
* **Browser:** macOS Safari 15.1
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54414>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list