Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
  • Loading branch information...
commit 05c31605c7c7467c817a0813f78d61787494b05d 1 parent d6fb700
nacin authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  wp-includes/class-oembed.php
View
1  wp-includes/class-oembed.php
@@ -47,6 +47,7 @@ function __construct() {
'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().
Please sign in to comment.
Something went wrong with that request. Please try again.