Ticket #21635: speakerdeck-slideshare-oembed.diff

File speakerdeck-slideshare-oembed.diff, 869 bytes (added by Tyrun, 9 months ago)
Line 
1Index: wp-includes/class-oembed.php
2--- wp-includes/class-oembed.php
3+++ wp-includes/class-oembed.php
4@@ -48,6 +48,8 @@
5                        '#http://(.+\.)?polldaddy\.com/.*#i'                 => array( 'http://polldaddy.com/oembed/',                      true  ),
6                        '#http://(www\.)?funnyordie\.com/videos/.*#i'        => array( 'http://www.funnyordie.com/oembed',                  true  ),
7                        '#https?://(www\.)?twitter.com/.+?/status(es)?/.*#i' => array( 'http://api.twitter.com/1/statuses/oembed.{format}', true  ),
8+                       '#https?://(www\.)?speakerdeck.com/u/*#'             => array( 'http://speakerdeck.com/oembed.json',                true  ),
9+                       '#https?://(www\.)?slideshare.net/*#'                => array( 'http://www.slideshare.net/api/oembed/2',            true  ),
10                ) );
11 
12                // Fix any embeds that contain new lines in the middle of the HTML which breaks wpautop().