WordPress.org

Make WordPress Core

Ticket #24497: 24497.patch

File 24497.patch, 844 bytes (added by johnzanussi, 11 months ago)
  • wp-includes/class-oembed.php

     
    5656                        '#https?://(www\.)?rdio\.com/.*#i'                   => array( 'http://www.rdio.com/api/oembed/',                   true  ), 
    5757                        '#https?://rd\.io/x/.*#i'                            => array( 'http://www.rdio.com/api/oembed/',                   true  ), 
    5858                        '#https?://(open|play)\.spotify\.com/.*#i'           => array( 'https://embed.spotify.com/oembed/',                 true  ), 
     59                        '#https?://(www\.)?collegehumor\.com/video/.*#i'     => array( 'http://www.collegehumor.com/oembed.{format}',       true  ),                             
    5960                ) ); 
    6061 
    6162                // Fix any embeds that contain new lines in the middle of the HTML which breaks wpautop().