Make WordPress Core

Ticket #31180: add_tumblr_oembed.diff

File add_tumblr_oembed.diff, 1.3 KB (added by elliottcarlson, 10 years ago)

Patch file

  • src/wp-includes/class-oembed.php

     
    6767           '#https?://(www\.)?mixcloud\.com/.*#i'                => array( 'http://www.mixcloud.com/oembed',                     true  ),
    6868           '#https?://(www\.|embed\.)?ted\.com/talks/.*#i'       => array( 'http://www.ted.com/talks/oembed.{format}',           true  ),
    6969           '#https?://(www\.)?(animoto|video214)\.com/play/.*#i' => array( 'http://animoto.com/oembeds/create',                  true  ),
     70           '#https?://(.+)\.tumblr\.com/post/.*#i'               => array( 'https://www.tumblr.com/oembed/1.0',                  true  ),
    7071       );
    7172
    7273       if ( ! empty( self::$early_providers['add'] ) ) {
     
    137138        * | YouTube      | youtube.com/playlist |  Yes  | 4.0.0     |
    138139        * | ------------ | -------------------- | ----- | --------- |
    139140        * | Vine         | vine.co              |  Yes  | 4.1.0     |
     141        * | Tumblr       | tumblr.com           |  Yes  | 4.1.0     |
    140142        * | ------------ | -------------------- | ----- | --------- |
    141143        *
    142144        * No longer supported providers: