[wp-trac] [WordPress Trac] #41201: Youtube Embed URL is not working in video widget

WordPress Trac noreply at wordpress.org
Fri Jul 21 18:01:38 UTC 2017


#41201: Youtube Embed URL is not working in video widget
-----------------------------------+------------------------------
 Reporter:  kakshak                |       Owner:
     Type:  defect (bug)           |      Status:  reopened
 Priority:  normal                 |   Milestone:  Awaiting Review
Component:  Media                  |     Version:
 Severity:  normal                 |  Resolution:
 Keywords:  has-screenshots close  |     Focuses:
-----------------------------------+------------------------------

Comment (by timmydcrawford):

 Replying to [comment:19 afercia]:
 > @timmydcrawford it doesn't work in the media modal for me. Does it
 really work for you?

 So to clarify a bit, the preview in the media modal does not work, but you
 are still able to "insert" the embed URL in to the editor, and the embed
 is displayed as expected there.

 Screen grab of the media modal insertion: https://cloudup.com/cIYzO8hiIc4

 During this process, a 404 is returned from the oembed proxy endpoint,
 this is as expected due to the logic you listed above:
 https://core.trac.wordpress.org/browser/trunk/src/wp-includes/class-
 oembed.php?marks=58,59,60#L55


 FWIW, using the YouTube embed URL within the YouTube block in Gutenberg
 behaves the same was as the video widget... since it too uses to
 oembed/proxy endpoint which 404's on these embed URLs, the process fails
 there too.

 So to fully "fix" this, we would have to add an embed url regex to the
 {{{$providers}}} array.

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


More information about the wp-trac mailing list