[wp-trac] [WordPress Trac] #59142: X/Twitter posts cannot be embedded

WordPress Trac noreply at wordpress.org
Thu Dec 11 04:46:43 UTC 2025


#59142: X/Twitter posts cannot be embedded
-------------------------+-----------------------------
 Reporter:  aphandersen  |       Owner:  (none)
     Type:  enhancement  |      Status:  reopened
 Priority:  normal       |   Milestone:  Future Release
Component:  Embeds       |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+-----------------------------

Comment (by peterwilsoncc):

 For future testing, when doing so you'll need to enable gutenberg and
 [https://github.com/WordPress/gutenberg/blob/5d41556d61f2851ca6c77b0ce45df17dc210c061/packages
 /block-library/src/embed/edit.js#L159-L164 comment out these lines before
 building] and testing. Or install the classic editor.

 @annezazu I'm still seeing plenty of conflicting URLs when I do a request
 for the embed code. A request to
 https://publish.x.com/oembed?url=https://x.com/therepositorywp/status/1998769871581024731
 returns the following HTML as the embed code:


 {{{#!xml
 <blockquote class="twitter-tweet">
   <p lang="en" dir="ltr">
     WordPress Playground’s 2025 Review Highlights Advances in
 Compatibility,
     Performance, and Developer Tooling
     <a href="https://t.co/Dpp9C4uZcQ">https://t.co/Dpp9C4uZcQ</a> —
 The Repository (@therepositorywp) <a
 href="https://twitter.com/therepositorywp/status/1998769871581024731?ref_src=twsrc%5Etfw">December
 10, 2025</a>
   </p>
 </blockquote>
 <script async src="https://platform.twitter.com/widgets.js"
 charset="utf-8"></script>
 }}}

 The resulting iframe created by the javascript is from
 https://platform.twitter.com/embed/Tweet.html

 So it looks like they're still returning a mix of domains and there still
 isn't a source of truth.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59142#comment:26>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list