WordPress.org

Make WordPress Core

Ticket #15734: add-oembed-providers.diff

File add-oembed-providers.diff, 968 bytes (added by wonderboymusic, 21 months ago)
  • wp-includes/class-oembed.php

     
    4848                        '#http://(.+\.)?polldaddy\.com/.*#i'                 => array( 'http://polldaddy.com/oembed/',                      true  ), 
    4949                        '#http://(www\.)?funnyordie\.com/videos/.*#i'        => array( 'http://www.funnyordie.com/oembed',                  true  ), 
    5050                        '#https?://(www\.)?twitter.com/.+?/status(es)?/.*#i' => array( 'http://api.twitter.com/1/statuses/oembed.{format}', true  ), 
     51                        '#http://(www\.)?soundcloud\.com/.*#i'               => array( 'http://soundcloud.com/oembed',                      true  ), 
     52                        '#http://(www\.)?kickstarter\.com/projects/.*#i'     => array( 'http://www.kickstarter.com/services/oembed',        true  ) 
    5153                ) ); 
    5254 
    5355                // Fix any embeds that contain new lines in the middle of the HTML which breaks wpautop().