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

git-svn-id: http://core.svn.wordpress.org/trunk@22351 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Jon Cave 2012-10-31 22:45:23 +00:00
parent 8a2548a137
commit 2e3745547e

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