From f434da3decf9208532b0f3e6e2ee7ea069597ffd Mon Sep 17 00:00:00 2001 From: Jb Audras Date: Sat, 14 Jan 2023 10:47:40 +0000 Subject: [PATCH] Embeds: Update Mixcloud oEmbed URL to the new domain. Replaces `https://www.mixcloud.com/oembed` with `https://app.mixcloud.com/oembed`. Mixcloud plan to redirect old URLs to the new endpoint. Props matclayton, peterwilsoncc, audrasjb, ayeshrajans. Fixes #57376. git-svn-id: https://develop.svn.wordpress.org/trunk@55068 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-oembed.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/class-wp-oembed.php b/src/wp-includes/class-wp-oembed.php index e177223435..83eada58fe 100644 --- a/src/wp-includes/class-wp-oembed.php +++ b/src/wp-includes/class-wp-oembed.php @@ -77,7 +77,7 @@ class WP_oEmbed { '#https?://(open|play)\.spotify\.com/.*#i' => array( 'https://embed.spotify.com/oembed/', true ), '#https?://(.+\.)?imgur\.com/.*#i' => array( 'https://api.imgur.com/oembed', true ), '#https?://(www\.)?issuu\.com/.+/docs/.+#i' => array( 'https://issuu.com/oembed_wp', true ), - '#https?://(www\.)?mixcloud\.com/.*#i' => array( 'https://www.mixcloud.com/oembed', true ), + '#https?://(www\.)?mixcloud\.com/.*#i' => array( 'https://app.mixcloud.com/oembed', true ), '#https?://(www\.|embed\.)?ted\.com/talks/.*#i' => array( 'https://www.ted.com/services/v1/oembed.{format}', true ), '#https?://(www\.)?(animoto|video214)\.com/play/.*#i' => array( 'https://animoto.com/oembeds/create', true ), '#https?://(.+)\.tumblr\.com/.*#i' => array( 'https://www.tumblr.com/oembed/1.0', true ),