From 6a0d5afcbce87c0534c1f7c3285e636530c57888 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: https://develop.svn.wordpress.org/trunk@24164 602fd350-edb4-49c9-b593-d223f7449a82 --- 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().