From ac3acca9924cd7e53df1e5f52e4b6a34d4ee151e Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Tue, 25 Sep 2012 23:42:53 +0000 Subject: [PATCH] Add soundcloud and slideshare to the oEmbed providers list. props bradparbs, ericwahlforss, wonderboymusic. fixes #15734, #21635. git-svn-id: https://develop.svn.wordpress.org/trunk@22003 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/class-oembed.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-includes/class-oembed.php b/wp-includes/class-oembed.php index 0248663403..553a660275 100644 --- a/wp-includes/class-oembed.php +++ b/wp-includes/class-oembed.php @@ -48,6 +48,8 @@ class WP_oEmbed { '#https?://(.+\.)?polldaddy\.com/.*#i' => array( 'http://polldaddy.com/oembed/', true ), '#https?://(www\.)?funnyordie\.com/videos/.*#i' => array( 'http://www.funnyordie.com/oembed', true ), '#https?://(www\.)?twitter.com/.+?/status(es)?/.*#i' => array( 'http://api.twitter.com/1/statuses/oembed.{format}', true ), + '#https?://(www\.)?soundcloud\.com/.*#i' => array( 'http://soundcloud.com/oembed', true ), + '#https?://(www\.)?slideshare.net/*#' => array( 'http://www.slideshare.net/api/oembed/2', true ), ) ); // Fix any embeds that contain new lines in the middle of the HTML which breaks wpautop().