[wp-trac] [WordPress Trac] #55278: Fix Support for embed.ly with Odysee.com (half working)

WordPress Trac noreply at wordpress.org
Wed Mar 2 23:22:51 UTC 2022


#55278: Fix Support for embed.ly with Odysee.com (half working)
-------------------------+------------------------------
 Reporter:  tomatodysee  |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Embeds       |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:  ui
-------------------------+------------------------------

Comment (by peterwilsoncc):

 Can you please answer each of the questions of the
 [https://make.wordpress.org/core/handbook/contribute/design-decisions
 /#adding-new-oembed-providers checklist for adding new oEmbed providers]
 to the allow list?

 The quickest way to get embeds working for your site would be to limit the
 HTML to the allowed list of tags for auto-discovery, this includes links,
 blockquotes and iframes with a limited set of attributes. See
 https://github.com/WordPress/wordpress-
 develop/blob/107050f7a34d0b728e4c38bfc946e3339578ea6f/src/wp-
 includes/embed.php#L921-L936

 For iframes, you'd also need to ensure any JavaScript and other code
 within the embed can be run in iframes with the attributes `sandbox
 ="allow-scripts" security="restricted"`.

 By enabling auto-discovery, your site's embeds will work on both WordPress
 versions below 6.0 and you won't need to go through the checklist above.

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


More information about the wp-trac mailing list