Skip to content

Commit d3af741

Browse files
committed
Embeds: Remove screencast.com from oEmbed allow list.
Screencast have updated their URL structure to use a sub-domain and the prior oEmbed endpoint in the allow list now returns a 410 Gone response. For discussion regarding the legacy endpoint refer to #61941, comment #35 onwards. Merges [60345] to the 6.8 branch. See #61941. Props audrasjb, brhodes, dustintechsmith, joedolson, johnbillion, nikunj8866, paulstanos, peterwilsoncc, sandeepdahiya, sergeybiryukov, sirlouen, swissspidy. git-svn-id: https://develop.svn.wordpress.org/branches/6.8@60354 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 3eb83b7 commit d3af741

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ public function __construct() {
8989
'#https?://videopress\.com/v/.*#' => array( 'https://public-api.wordpress.com/oembed/?for=' . $host, true ),
9090
'#https?://(www\.)?reddit\.com/r/[^/]+/comments/.*#i' => array( 'https://www.reddit.com/oembed', true ),
9191
'#https?://(www\.)?speakerdeck\.com/.*#i' => array( 'https://speakerdeck.com/oembed.{format}', true ),
92-
'#https?://(www\.)?screencast\.com/.*#i' => array( 'https://api.screencast.com/external/oembed', true ),
9392
'#https?://([a-z0-9-]+\.)?amazon\.(com|com\.mx|com\.br|ca)/.*#i' => array( 'https://read.amazon.com/kp/api/oembed', true ),
9493
'#https?://([a-z0-9-]+\.)?amazon\.(co\.uk|de|fr|it|es|in|nl|ru)/.*#i' => array( 'https://read.amazon.co.uk/kp/api/oembed', true ),
9594
'#https?://([a-z0-9-]+\.)?amazon\.(co\.jp|com\.au)/.*#i' => array( 'https://read.amazon.com.au/kp/api/oembed', true ),
@@ -216,6 +215,7 @@ public function __construct() {
216215
* | Meetup.com | meetup.com | 3.9.0 | 6.0.1 |
217216
* | Meetup.com | meetu.ps | 3.9.0 | 6.0.1 |
218217
* | SlideShare | slideshare.net | 3.5.0 | 6.6.0 |
218+
* | Screencast | screencast.com | 4.8.0 | 6.8.2 |
219219
*
220220
* @see wp_oembed_add_provider()
221221
*

0 commit comments

Comments
 (0)