From e62a2b032724076ba6db1c02c242ed989cad4689 Mon Sep 17 00:00:00 2001 From: Jon Cave Date: Wed, 31 Oct 2012 22:45:23 +0000 Subject: [PATCH] Add Instagram oEmbed support. Props bananastalktome. Fixes #21704. git-svn-id: https://develop.svn.wordpress.org/trunk@22351 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/class-oembed.php | 1 + 1 file changed, 1 insertion(+) 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().