diff --git a/wp-includes/class-oembed.php b/wp-includes/class-oembed.php index b625fc5872..03e32d8ed0 100644 --- a/wp-includes/class-oembed.php +++ b/wp-includes/class-oembed.php @@ -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().