From e1b429fd67a7610b25eb794e51af5adeddb21a04 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Mon, 9 Jan 2012 17:43:48 +0000 Subject: [PATCH] Add Twitter.com as an oEmbed provider. props Otto42. see #19626. git-svn-id: https://develop.svn.wordpress.org/trunk@19721 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/class-oembed.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/class-oembed.php b/wp-includes/class-oembed.php index 9b46720229..fda17389d5 100644 --- a/wp-includes/class-oembed.php +++ b/wp-includes/class-oembed.php @@ -47,6 +47,7 @@ class WP_oEmbed { 'http://wordpress.tv/*' => array( 'http://wordpress.tv/oembed/', false ), '#http://(.+\.)?polldaddy\.com/.*#i' => array( 'http://polldaddy.com/oembed/', true ), '#http://(www\.)?funnyordie\.com/videos/.*#i' => array( 'http://www.funnyordie.com/oembed', true ), + '#https?://(www\.)?twitter.com/.+?/status(es)?/.*#i' => array( 'http://api.twitter.com/1/statuses/oembed.{format}', true ), ) ); // Fix any embeds that contain new lines in the middle of the HTML which breaks wpautop().