[wp-trac] [WordPress Trac] #18719: YouTube Embedding Fails for https:// URLs

WordPress Trac wp-trac at lists.automattic.com
Thu Feb 2 19:58:57 UTC 2012


#18719: YouTube Embedding Fails for https:// URLs
--------------------------+------------------------------
 Reporter:  MacMacken     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Embeds        |     Version:  3.2.1
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------

Comment (by rich_brat):

 Great! I actually found that google thread but didn't really know what to
 do with it :)

 A quick fix for functions.php:
 wp_oembed_add_provider('https://youtu.be/*',
 'http://youtube.com/oembed?scheme=https', false );
 wp_oembed_add_provider('#https://(www\.)?youtube.com/watch.*#i',
 'http://youtube.com/oembed?scheme=https', true);

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18719#comment:12>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list