Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #18719, comment 10


Ignore:
Timestamp:
02/02/2012 06:53:32 PM (12 years ago)
Author:
Otto42
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18719, comment 10

    initial v1  
    11In theory, simply adding these lines to class-oembed.php would do the trick:
    22{{{
    3 '#https?://(www\.)?youtube.com/watch.*#i'         => array( 'http://www.youtube.com/oembed',            true  ),
    4 'https?://youtu.be/*'                             => array( 'http://www.youtube.com/oembed',            false ),
     3'#https?://(www\.)?youtube.com/watch.*#i'         => array( 'https://www.youtube.com/oembed',            true  ),
     4'https?://youtu.be/*'                             => array( 'https://www.youtube.com/oembed',            false ),
    55}}}
    66