From c194462933b261ebf47b8c45ea4aa82bc5d34277 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 2 May 2013 23:55:07 +0000 Subject: [PATCH] Add Spotify to the default oEmbed providers list. fixes #24242. git-svn-id: http://core.svn.wordpress.org/trunk@24164 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-oembed.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/class-oembed.php b/wp-includes/class-oembed.php index 2d9dfd59d8..c6691a5858 100644 --- a/wp-includes/class-oembed.php +++ b/wp-includes/class-oembed.php @@ -53,6 +53,7 @@ class WP_oEmbed { '#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 ), + '#https?://open.spotify.com/.*#i' => array( 'https://embed.spotify.com/oembed/', true ), ) ); // Fix any embeds that contain new lines in the middle of the HTML which breaks wpautop().