From 2840648d86aa795909a768c9ab5052e67ba491c9 Mon Sep 17 00:00:00 2001 From: Peter Wilson Date: Fri, 7 Jun 2024 23:15:16 +0000 Subject: [PATCH] Embeds: Remove SlideShare embed block variation. The oEmbed endpoint for SlideShare is effectively deprecated and throws an error for the majority of slide-decks using the service. Capitalize the name of the service in the deprecation notice in accordance with the wordmark. Props peterwilsoncc, mukesh27, swissspidy, talldanwp, dd32. Fixes #61349. Built from https://develop.svn.wordpress.org/trunk@58362 git-svn-id: http://core.svn.wordpress.org/trunk@57811 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-oembed.php | 3 +-- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/wp-includes/class-wp-oembed.php b/wp-includes/class-wp-oembed.php index 546fa41f28..5b699e9362 100644 --- a/wp-includes/class-wp-oembed.php +++ b/wp-includes/class-wp-oembed.php @@ -75,7 +75,6 @@ class WP_oEmbed { '#https?://(www\.)?twitter\.com/\w{1,15}/timelines/.*#i' => array( 'https://publish.twitter.com/oembed', true ), '#https?://(www\.)?twitter\.com/i/moments/.*#i' => array( 'https://publish.twitter.com/oembed', true ), '#https?://(www\.)?soundcloud\.com/.*#i' => array( 'https://soundcloud.com/oembed', true ), - '#https?://(.+?\.)?slideshare\.net/.*#i' => array( 'https://www.slideshare.net/api/oembed/2', true ), '#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 ), @@ -148,7 +147,6 @@ class WP_oEmbed { * | SmugMug | smugmug.com | 3.0.0 | * | YouTube | youtu.be | 3.0.0 | * | Twitter | twitter.com | 3.4.0 | - * | Slideshare | slideshare.net | 3.5.0 | * | SoundCloud | soundcloud.com | 3.5.0 | * | Dailymotion | dai.ly | 3.6.0 | * | Flickr | flic.kr | 3.6.0 | @@ -215,6 +213,7 @@ class WP_oEmbed { * | Facebook | facebook.com | 4.7.0 | 5.5.2 | * | Meetup.com | meetup.com | 3.9.0 | 6.0.1 | * | Meetup.com | meetu.ps | 3.9.0 | 6.0.1 | + * | SlideShare | slideshare.net | 3.5.0 | 6.6.0 | * * @see wp_oembed_add_provider() * diff --git a/wp-includes/version.php b/wp-includes/version.php index ac97e80b06..efdace903b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.6-beta1-58361'; +$wp_version = '6.6-beta1-58362'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.