From 9539c0af8e67745841774641b44679b5ca9089bf Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Thu, 5 Mar 2015 20:12:31 +0000 Subject: [PATCH] Add oEmbed support for Tumblr. Props elliottcarlson. See #31180. git-svn-id: https://develop.svn.wordpress.org/trunk@31630 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-oembed.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/class-oembed.php b/src/wp-includes/class-oembed.php index ca56471d0e..88e7701e78 100644 --- a/src/wp-includes/class-oembed.php +++ b/src/wp-includes/class-oembed.php @@ -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: * * | ------------ | -------------------- | ----- | --------- | --------- |