Add oEmbed support for Tumblr.

Props elliottcarlson.
See #31180.

Built from https://develop.svn.wordpress.org/trunk@31630


git-svn-id: http://core.svn.wordpress.org/trunk@31611 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2015-03-05 20:13:25 +00:00
parent e1e8782304
commit b05ff18586
2 changed files with 5 additions and 2 deletions

View File

@ -67,6 +67,7 @@ class WP_oEmbed {
'#https?://(www\.)?mixcloud\.com/.*#i' => array( 'http://www.mixcloud.com/oembed', true ),
'#https?://(www\.|embed\.)?ted\.com/talks/.*#i' => array( 'http://www.ted.com/talks/oembed.{format}', true ),
'#https?://(www\.)?(animoto|video214)\.com/play/.*#i' => array( 'http://animoto.com/oembeds/create', true ),
'#https?://(.+)\.tumblr\.com/post/.*#i' => array( 'https://www.tumblr.com/oembed/1.0', true ),
);
if ( ! empty( self::$early_providers['add'] ) ) {
@ -138,7 +139,9 @@ class WP_oEmbed {
* | ------------ | -------------------- | ----- | --------- |
* | Vine | vine.co | Yes | 4.1.0 |
* | ------------ | -------------------- | ----- | --------- |
*
* | Tumblr | tumblr.com | Yes | 4.2.0 |
* | ------------ | -------------------- | ----- | --------- |
*
* No longer supported providers:
*
* | ------------ | -------------------- | ----- | --------- | --------- |

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.2-alpha-31629';
$wp_version = '4.2-alpha-31630';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.