Embeds: Add screencast.com to oEmbed provider whitelist.

Props ENDif Media.
Fixes #38367.


git-svn-id: https://develop.svn.wordpress.org/trunk@40574 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Pascal Birchler 2017-05-06 14:24:37 +00:00
parent f0b0147985
commit 9a2188dd56

View File

@ -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:
*