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
This commit is contained in:
nacin 2012-01-09 17:43:48 +00:00
parent d6fb70098f
commit 05c31605c7
1 changed files with 1 additions and 0 deletions

View File

@ -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().