From c44b6b68e729a24a6b6dd22d0bb4d6e5937103d8 Mon Sep 17 00:00:00 2001
From: Winfield <winfield.peterson@gmail.com>
Date: Mon, 7 Oct 2013 11:27:53 -0400
Subject: [PATCH] Add Polar Polls to oEmbed Whitelist
Support embedding Polar Poll URLs for oEmbed
---
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 a880448..c3f9b72 100644
a
|
b
|
function __construct() { |
56 | 56 | '#https?://(www\.)?rdio\.com/.*#i' => array( 'http://www.rdio.com/api/oembed/', true ), |
57 | 57 | '#https?://rd\.io/x/.*#i' => array( 'http://www.rdio.com/api/oembed/', true ), |
58 | 58 | '#https?://(open|play)\.spotify\.com/.*#i' => array( 'https://embed.spotify.com/oembed/', true ), |
| 59 | '#http?://.*polarb.com/.*#i' => array( 'http://polarb.com/api/v4/o_embed.json', true ), |
59 | 60 | ) ); |
60 | 61 | |
61 | 62 | // Fix any embeds that contain new lines in the middle of the HTML which breaks wpautop(). |