[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 18:10:06 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:  has-patch     |     Focuses:
--------------------------+------------------------------
Changes (by dmchale):

 * keywords:   => has-patch


Comment:

 No worries at all @MikeNGarrett!

 Turns out that I was grossly overthinking this anyway. It seems WordPress
 already had an override in `wp-includes/media.php` for handling
 `youtube.com/embed/` paths... I simply added 1 line of code to mimic the
 functionality for `youtube.com/v/` paths and it works like a champ. Patch
 attached.

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


More information about the wp-trac mailing list