Make WordPress Core

Ticket #25525: add-polar-oembed.patch

File add-polar-oembed.patch, 1.1 KB (added by wpeterson, 11 years ago)

Patch File of Pull Request

  • wp-includes/class-oembed.php

    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() { 
    5656                        '#https?://(www\.)?rdio\.com/.*#i'                   => array( 'http://www.rdio.com/api/oembed/',                   true  ),
    5757                        '#https?://rd\.io/x/.*#i'                            => array( 'http://www.rdio.com/api/oembed/',                   true  ),
    5858                        '#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  ),
    5960                ) );
    6061
    6162                // Fix any embeds that contain new lines in the middle of the HTML which breaks wpautop().