Make WordPress Core

Ticket #29355: thinglink.oembed.diff

File thinglink.oembed.diff, 1.2 KB (added by peterchester, 9 years ago)

Diff file to support thinglink oembed.

  • wp-includes/class-oembed.php

    diff --git a/wp-includes/class-oembed.php b/wp-includes/class-oembed.php
    index b6bfeb7..ca430a2 100644
    a b class WP_oEmbed { 
    6464                        '#https?://(www\.)?mixcloud\.com/.*#i'                => array( 'http://www.mixcloud.com/oembed',                     true  ),
    6565                        '#https?://(www\.|embed\.)?ted\.com/talks/.*#i'       => array( 'http://www.ted.com/talks/oembed.{format}',           true  ),
    6666                        '#https?://(www\.)?(animoto|video214)\.com/play/.*#i' => array( 'http://animoto.com/oembeds/create',                  true  ),
     67                        '#https?://www\.thinglink\.com/scene/.*#i'            => array( 'https://api.thinglink.com/api/oembed',               true  ),
    6768                );
    6869
    6970                if ( ! empty( self::$early_providers['add'] ) ) {
    class WP_oEmbed { 
    131132                 * | Mixcloud     | mixcloud.com         |  Yes  | 4.0.0     |
    132133                 * | Polldaddy    | poll.fm              |  Yes  | 4.0.0     |
    133134                 * | TED          | ted.com              |  Yes  | 4.0.0     |
     135                 * | Thinglink    | thinglink.com        |  Yes  | 4.0.0     |
    134136                 * | YouTube      | youtube.com/playlist |  Yes  | 4.0.0     |
    135137                 * | ------------ | -------------------- | ----- | --------- |
    136138                 *