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
This commit is contained in:
Andrew Nacin 2012-01-09 17:43:48 +00:00
parent ba219cf998
commit e1b429fd67
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().