From e1d5fd1c6b61354e07a0576bdcc905100003dfae Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Sat, 6 May 2017 14:25:45 +0000 Subject: [PATCH] Embeds: Add screencast.com to oEmbed provider whitelist. Props ENDif Media. Fixes #38367. Built from https://develop.svn.wordpress.org/trunk@40574 git-svn-id: http://core.svn.wordpress.org/trunk@40444 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-oembed.php | 2 ++ wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-includes/class-oembed.php b/wp-includes/class-oembed.php index 49a189f4fb..c25b8cbac8 100644 --- a/wp-includes/class-oembed.php +++ b/wp-includes/class-oembed.php @@ -108,6 +108,7 @@ class WP_oEmbed { '#https?://www\.facebook\.com/notes/.*#i' => array( 'https://www.facebook.com/plugins/post/oembed.json/', true ), '#https?://www\.facebook\.com/.*/videos/.*#i' => array( 'https://www.facebook.com/plugins/video/oembed.json/', true ), '#https?://www\.facebook\.com/video\.php.*#i' => array( 'https://www.facebook.com/plugins/video/oembed.json/', true ), + '#https?://(www\.)?screencast\.com/.*#i' => array( 'https://api.screencast.com/external/oembed', true ), ); if ( ! empty( self::$early_providers['add'] ) ) { @@ -181,6 +182,7 @@ class WP_oEmbed { * | Twitter | twitter.com/user | Yes | 4.7.0 | * | Twitter | twitter.com/likes | Yes | 4.7.0 | * | Twitter | twitter.com/lists | Yes | 4.7.0 | + * | Screencast | screencast.com | Yes | 4.8.0 | * * No longer supported providers: * diff --git a/wp-includes/version.php b/wp-includes/version.php index f57920064c..51c19eda73 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.8-alpha-40573'; +$wp_version = '4.8-alpha-40574'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.