Ticket #15734: add-oembed-providers.diff

File add-oembed-providers.diff, 968 bytes (added by wonderboymusic, 9 months ago)
Line 
1Index: wp-includes/class-oembed.php
2===================================================================
3--- wp-includes/class-oembed.php        (revision 21481)
4+++ wp-includes/class-oembed.php        (working copy)
5@@ -48,6 +48,8 @@
6                        '#http://(.+\.)?polldaddy\.com/.*#i'                 => array( 'http://polldaddy.com/oembed/',                      true  ),
7                        '#http://(www\.)?funnyordie\.com/videos/.*#i'        => array( 'http://www.funnyordie.com/oembed',                  true  ),
8                        '#https?://(www\.)?twitter.com/.+?/status(es)?/.*#i' => array( 'http://api.twitter.com/1/statuses/oembed.{format}', true  ),
9+                       '#http://(www\.)?soundcloud\.com/.*#i'               => array( 'http://soundcloud.com/oembed',                      true  ),
10+                       '#http://(www\.)?kickstarter\.com/projects/.*#i'     => array( 'http://www.kickstarter.com/services/oembed',        true  )
11                ) );
12 
13                // Fix any embeds that contain new lines in the middle of the HTML which breaks wpautop().