[wp-trac] [WordPress Trac] #32161: support youtube search friendly URL usualy used for sharing http://www.youtube.com/v/dr4HHepGxxM

WordPress Trac noreply at wordpress.org
Tue Apr 28 15:05:08 UTC 2015


#32161: support youtube search friendly URL usualy used for sharing
http://www.youtube.com/v/dr4HHepGxxM
--------------------------+------------------------------
 Reporter:  ritter.aaron  |       Owner:
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Embeds        |     Version:  4.2.1
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by dmchale):

 The issue with adding this is that already-supported URLs contain link
 tags with paths to their oembed data. The `youtube.com/v/` and
 `youtube.com/embed/` paths do not contain an oembed link tag.

 That said, they DO contain canonical link tags which could probably be
 used to hijack the process and make "https://www.youtube.com/v/12345678"
 end up looking at "https://www.youtube.com/watch?v=12345678" for its
 oembed data. While technically you could try to cheat the system another
 way, I think relying on the canonical urls makes more sense (and is
 certainly more future-proof) than us making assumptions about what it
 "should" be. It's two curl posts instead of one but... *shrug*

 It's also a hack for only these urls, so it would be up to the Core team
 if that is "allowed" since it's a fairly specific case.

 I have some code done already, will try to post a patch soon.

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


More information about the wp-trac mailing list