[wp-trac] [WordPress Trac] #52005: Custom Embed Handlers not rendering preview in "Embed" Block

WordPress Trac noreply at wordpress.org
Wed Dec 9 22:44:59 UTC 2020


#52005: Custom Embed Handlers not rendering preview in "Embed" Block
--------------------------+-----------------------------
 Reporter:  MadtownLems   |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Embeds        |    Version:  5.6
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 I have a custom embed handler, registered with wp_embed_register_handler -
 as the site does not support oEmbed.  We've used it for a decade without
 issue, but are now looking to move to the Block Editor.

 When I insert a video's URL into an Embed block, it displays "Sorry, this
 content could not be embedded."

 However, when I view the post, the video is embedded properly.


 The ideal behavior would be the block showing a preview of the embedded
 video, much like if the site supported oEmbed.

 Next-best behavior might be some more generic preview, perhaps a large
 "play" button and some text that says "Embedded video."

 But the current situation is very rough from a user perspective. The UI is
 telling me "This content could not be embedded" - when it absolutely can
 be. One need only view the post to see it embedded.

 It looks like the Embed block only tries to use oEmbed, and ignores any
 custom handlers, when determining if the content could be embedded.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52005>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list