From e3d41d52ac9002f4d09daba4a98c136e91a442fa Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 2 May 2013 22:04:23 +0000 Subject: [PATCH] Add Rdio to the default oembed providers list. Props zekeweeks fixes #24242 git-svn-id: https://develop.svn.wordpress.org/trunk@24160 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 46d5f6290d..2d9dfd59d8 100644 --- a/wp-includes/class-oembed.php +++ b/wp-includes/class-oembed.php @@ -51,6 +51,8 @@ class WP_oEmbed { '#https?://(www\.)?soundcloud\.com/.*#i' => array( 'http://soundcloud.com/oembed', true ), '#https?://(www\.)?slideshare.net/*#' => array( 'http://www.slideshare.net/api/oembed/2', true ), '#http://instagr(\.am|am\.com)/p/.*#i' => array( 'http://api.instagram.com/oembed', true ), + '#https?://(www\.)?rdio\.com/.*#i' => array( 'http://www.rdio.com/api/oembed/', true ), + '#https?://rd\.io/x/.*#i' => array( 'http://www.rdio.com/api/oembed/', true ), ) ); // Fix any embeds that contain new lines in the middle of the HTML which breaks wpautop().