Skip to content

Commit 66772c8

Browse files
committed
Embeds: Update the ReverbNation oEmbed endpoint.
ReverbNation has moved its site and oEmbed API to the `legacy.reverbnation.com` subdomain. The previous `www.reverbnation.com/oembed` endpoint returns a `404 Not Found` response and does not redirect, so embeds of artist and song URLs stopped working. This points the provider at the new endpoint and extends the URL pattern to match `legacy.reverbnation.com`, which `www.reverbnation.com` URLs now redirect to. Props johnbillion, yogeshbhutkar, arkaprabhachowdhury, adamsilverstein. Fixes #66079. git-svn-id: https://develop.svn.wordpress.org/trunk@63907 602fd350-edb4-49c9-b593-d223f7449a82
1 parent af43833 commit 66772c8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/wp-includes/class-wp-oembed.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function __construct() {
8888
'#https?://(www\.)?kickstarter\.com/projects/.*#i' => array( 'https://www.kickstarter.com/services/oembed', true ),
8989
'#https?://kck\.st/.*#i' => array( 'https://www.kickstarter.com/services/oembed', true ),
9090
'#https?://cloudup\.com/.*#i' => array( 'https://cloudup.com/oembed', true ),
91-
'#https?://(www\.)?reverbnation\.com/.*#i' => array( 'https://www.reverbnation.com/oembed', true ),
91+
'#https?://((legacy|www)\.)?reverbnation\.com/.*#i' => array( 'https://legacy.reverbnation.com/oembed', true ),
9292
'#https?://videopress\.com/v/.*#' => array( 'https://public-api.wordpress.com/oembed/?for=' . $host, true ),
9393
'#https?://(www\.)?reddit\.com/r/[^/]+/comments/.*#i' => array( 'https://www.reddit.com/oembed', true ),
9494
'#https?://(www\.)?speakerdeck\.com/.*#i' => array( 'https://speakerdeck.com/oembed.{format}', true ),

0 commit comments

Comments
 (0)