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