Add Instagram oEmbed support. Props bananastalktome. Fixes #21704.

git-svn-id: https://develop.svn.wordpress.org/trunk@22351 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jon Cave 2012-10-31 22:45:23 +00:00
parent b5b580e50a
commit e62a2b0327
1 changed files with 1 additions and 0 deletions

View File

@ -50,6 +50,7 @@ class WP_oEmbed {
'#https?://(www\.)?twitter.com/.+?/status(es)?/.*#i' => array( 'http://api.twitter.com/1/statuses/oembed.{format}', true ),
'#https?://(www\.)?soundcloud\.com/.*#i' => array( 'http://soundcloud.com/oembed', true ),
'#https?://(www\.)?slideshare.net/*#' => array( 'http://www.slideshare.net/api/oembed/2', true ),
'#http://instagr(\.am|am\.com)/p/.*#i' => array( 'http://api.instagram.com/oembed', true ),
) );
// Fix any embeds that contain new lines in the middle of the HTML which breaks wpautop().