WordPress.org

Make WordPress Core

Ticket #33207: wordpress.patch

File wordpress.patch, 1.1 KB (added by rhubbardreverb, 6 years ago)

Patch of change

  • wp-includes/class-oembed.php

    From 42f7179efc03868ca0172cd5f207e663964dc4ba Mon Sep 17 00:00:00 2001
    From: Robert Hubbard <rhubbard@reverbnation.com>
    Date: Thu, 30 Jul 2015 11:48:03 -0400
    Subject: [PATCH] Add ReverbNation to oEmbed whitelist
    
    ---
     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 401fedc..a5c8413 100644
    a b public function __construct() { 
    7373                        '#https?://(.+)\.tumblr\.com/post/.*#i'               => array( 'https://www.tumblr.com/oembed/1.0',                  true  ),
    7474                        '#https?://(www\.)?kickstarter\.com/projects/.*#i'    => array( 'https://www.kickstarter.com/services/oembed',        true  ),
    7575                        '#https?://kck\.st/.*#i'                              => array( 'https://www.kickstarter.com/services/oembed',        true  ),
     76                        '#https?://(www\.)?reverbnation\.com/.*#i'            => array( 'https://www.reverbnation.com/oembed',                true  ),
    7677                );
    7778
    7879                if ( ! empty( self::$early_providers['add'] ) ) {