Make WordPress Core

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


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

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18719, comment 10

    v1 v2  
    11In theory, simply adding these lines to class-oembed.php would do the trick:
    22{{{
    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 ),
     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