From 784d3071c919c6ceb3a72297e4dd0aa6bc8e06b0 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 6 Feb 2014 23:12:12 +0000 Subject: [PATCH] Add imgur to the list of oEmbed providers. props bradparbs. fixes #21632. Built from https://develop.svn.wordpress.org/trunk@27113 git-svn-id: http://core.svn.wordpress.org/trunk@26980 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 15b62b5085..7ce3c5f6a6 100644 --- a/wp-includes/class-oembed.php +++ b/wp-includes/class-oembed.php @@ -55,6 +55,7 @@ class WP_oEmbed { '#https?://(www\.)?rdio\.com/.*#i' => array( 'http://www.rdio.com/api/oembed/', true ), '#https?://rd\.io/x/.*#i' => array( 'http://www.rdio.com/api/oembed/', true ), '#https?://(open|play)\.spotify\.com/.*#i' => array( 'https://embed.spotify.com/oembed/', true ), + '#https?://(.+\.)?imgur\.com/.*#i' => array( 'http://api.imgur.com/oembed', true ), ); /**