From 762a0e1d9093b5f9216c87fe3f5fc69cb70a90af Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Fri, 3 May 2013 00:21:20 +0000 Subject: [PATCH] Support Spotify web player links. see #24242. git-svn-id: http://core.svn.wordpress.org/trunk@24165 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-oembed.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/class-oembed.php b/wp-includes/class-oembed.php index c6691a5858..87a23c83a0 100644 --- a/wp-includes/class-oembed.php +++ b/wp-includes/class-oembed.php @@ -53,7 +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 ), + '#https?://(open|play).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().