From 05c31605c7c7467c817a0813f78d61787494b05d Mon Sep 17 00:00:00 2001 From: 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: http://svn.automattic.com/wordpress/trunk@19721 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 9b4672022..fda17389d 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().